You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
sonus...@gmail.com
on 27 Jun 2015 at 10:31The text was updated successfully, but these errors were encountered: