This content has been marked as final.
Show 5 replies
-
1. Re: Caching
tom_goring Apr 2, 2008 3:51 PM (in response to jamesjmp)Use a standard EJB3 cache....
Read up on @Cache
e.g.
@Entity @Table(name="company") @Cache(usage=CacheConcurrencyStrategy.TRANSACTIONAL)
-
2. Re: Caching
christian.bauer Apr 2, 2008 3:57 PM (in response to jamesjmp)This is actually @org.hibernate.annotations.Cache and has nothing to do with the EJB 3.0 standard. Read up on Hibernate second-level cache.
-
3. Re: Caching
jamesjmp Apr 2, 2008 5:45 PM (in response to jamesjmp)Should I add a hibernate.cfg.xml to my seam project?
otherwise, where should I add configuration like this:<session-factory> <property name="hibernate.cache.provider_class"> org.hibernate.cache.EHCacheProvider </property> </session-factory>
thanks in advance!
-
4. Re: Caching
christian.bauer Apr 2, 2008 6:00 PM (in response to jamesjmp)This should go into persistence.xml in almost all cases. And you are in for a lot of trouble if you are going to do this ad hoc without reading up on it first.
-
5. Re: Caching
jamesjmp Apr 2, 2008 6:04 PM (in response to jamesjmp)thank you, and don´t worry I´ll read up on it!!