Ask questions and see you at 6th April 6.PM. CET: http://www.ustream.tv/channel/adambien
See also the airhacks archives airhacks.tv and subscribe to the airhacksnews.com
- I have never used Spring ,hibernate and struts ,I build my web app's using Jsf, ejb,cdi ,jpa ,is the same ? what's the difference? @SoyRoji
What is the best way to achieve a singleton JPA @entity? I find I often I want to create a singleton object which holds runtime configuration data, configurable within the application itself, and persistently stored within the JPA environment for that application. In order to maintain that only one ApplicationConfiguration will ever exist within the application, I have to jump through hoops for all CRUD operations within my DAO layer and play tricks with the @id (checking if @entity exists, then remapping the CxUD with the getId() of the originally persisted entity, yuck). Would you please recommend a strategy for a JPA @entity which follows @singleton semantics. Thank you!