1. Hiber cache : Cache all fixed data permanently stackoverflow.comI have few tables like Country,state city which has static data. User do not enter any data in this data. I create pojo for Country, State, City. There are few pojo ... |
2. Cache not working with annotations forum.hibernate.orgI have a very simple application where I am trying to enable second level cache, but can't get it to work. I have a main class which look like this: ------------------------------------ public static void main(String[] args) { Session session = HibernateUtil.getCurrentSession(); HibernateUtil.beginTransaction(); for (int i = 0; i < 5; i++) { Timer timer = new Timer("Get players"); List list = ... |
3. Hibernate Caching with JPA 3.0 annotations forum.hibernate.orgI'm using Hibernate + Spring with JPA 3.0 annotations, and using EhCache to cache the hibernate objects. The cache seems to work fine for a simple objects like AppsLookupDetail object below: @Cache(usage = CacheConcurrencyStrategy.READ_ONLY) public class LookupDetail implements Persistable, HasNumericPrimaryKey{ private String type; private String code; private String meaning; } However i'm not able to make it work for slightly complex ... |