Hi
We are developing web application using Spring and Hibernate. We want to implement hibernate second level cache mechanism in our application.
As to get data from second level cache we have to use below two API: org.hibernate.Session.load(Class theClass, Serializable id); org.hibernate.Session.get(Class clazz, Serializable id);
We are using hibernate.default_entity_mode as "dynamic-map" instead of POJO, so here we don't have POJO classes due to which we are not able to call load() and get() API for second level cache as parameter for this method are entity class name.
So,is there any alternative way to implement second level cache for this type of configuration.
Thanks.
|