Use a standard EJB3 cache....
Read up on @Cache
@Entity @Table(name="company") @Cache(usage=CacheConcurrencyStrategy.TRANSACTIONAL)
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.
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!
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.
thank you, and don´t worry I´ll read up on it!!