Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue when Implementing Ehcache #118

Open
GoogleCodeExporter opened this issue Dec 18, 2015 · 0 comments
Open

Issue when Implementing Ehcache #118

GoogleCodeExporter opened this issue Dec 18, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

We are using GenericDAO in our project. Now we are implementing Hibernate 
Secondary Cache(EhCache) with the existing code.

Issue: Cannot fetch entity from Secondlevel cache. Because we have to set 
setCacheable(true) with each criteria query. We don't know how to set it with 
GenericDAO.
 Eg: 
Product product = (Product) 
session.createCriteria(Product.class).setCacheable(true)
                .add(Restrictions.eq("id", id))
                .uniqueResult();

How can I do with the same with google GenericDAO? Please help us.

Original issue reported on code.google.com by sonus...@gmail.com on 27 Jun 2015 at 10:31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant