Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate CreateCriteria to Spring Criteria

 
paul king
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Cheers
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds like a Spring question. Moving...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic