-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Hibernate L2 caching for entity_mode as "dynamic-map"
PostPosted: Tue Nov 26, 2013 6:15 am 
Newbie

Joined: Tue Nov 26, 2013 5:55 am
Posts: 2
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.