This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes Hibernate CreateCriteria to Spring Criteria Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate CreateCriteria to Spring Criteria" Watch "Hibernate CreateCriteria to Spring Criteria" New topic

Hibernate CreateCriteria to Spring Criteria

paul king

Joined: May 23, 2006
Posts: 12
I have just implemented Spring into my application and I have a Hibernate Criteria Object which I use to return an arraylist of objects dependant upon what I add to that criteria.

How do I do the same thing in Spring? I know there is a 'findByCriteria' method but this takes DetachedCriteria and I'm not sure what any of this is, whethere this is right and if so how to use it.

Any examples or alternatives etc. is much appreciated.

Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

Sounds like a Spring question. Moving...

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
I agree. Here's the link:
subject: Hibernate CreateCriteria to Spring Criteria
jQuery in Action, 3rd edition