DetachedCriteria « JPA « Spring Q&A





1. Converting a HashMap to DetachedCriteria    forum.springsource.org

Converting a HashMap to DetachedCriteria I had good luck with my last question here, so I thought I would try another one. My platform is Spring 1.2.6, Hibernate 3.1.1, and Java ...

2. problem with Create DetachedCriteria    forum.springsource.org

you have no restrictions added. when you create a criteria for a given class with no restrictions, that translates to select * from ....

3. how to navigate multiple level of assosiations with DetachedCriteria    forum.springsource.org

Nov 28th, 2008, 06:38 AM #1 rukshan View Profile View Forum Posts Private Message Member Join Date Apr 2008 Location Singapore Posts 82 how to navigate multiple level of assosiations with ...

4. How to implement it in DetachedCriteria?    forum.springsource.org

How to implement it in DetachedCriteria? How can I implement a DetachedCriteria for an embeddable Id. Say my table is Employee with columns name, age, dept. Employee is the corresponding Java ...

5. DetachedCriteria on Date column type    forum.springsource.org

Hi, I need some help in understanding how DetachedCriteria work for date object. I have a table which has 5 columns of which 1 column is date type.I need keep Restrictions ...

6. Second Level Cache with DetachedCriteria    forum.springsource.org

We have developed code using detachedcriteria (hibernate 3.2.7, Spring 2.5.6) and trying to implement second level caching with no success. I wanted to know whether second level caching is possible with ...

7. Question on DetachedCriteria    forum.springsource.org

After setting the detached criteria for an object, If I want to know which object is set in the criteria, how can I know? DetachedCriteria criteria= DetachedCriteria.forClass(Bhanu.class); criteria.setProjection(Projections.rowCount()); List items = ...

8. [URGENT!] DetachedCriteria.createAlias with OR condition    forum.springsource.org

Hi all! I need to add 2 createAlias on my detachedCriteria....but I need the OR condition between 2 createAlias My createAlias: Code: detachedCriteria.createAlias("valutatoriTecnici", "techEvaluators").add(Restrictions.eq("techEvaluators.idUtente", currentUser.getIdUtente())); detachedCriteria.createAlias("valutatoriEconomici", "econEvaluators").add(Restrictions.eq("econEvaluators.idUtente", currentUser.getIdUtente())); How do it? ...