Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How would I use Hibernate and criteria to build this query?

 
Dave Alvarado
Ranch Hand
Posts: 436
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm using Java 1.5, Hibernate 3.3.2.GA. In my Java model, Applicant, I join to another table, and have



I want to write a query to get the applicant but only return a subset of the "ProcessLogs" (those ProcessLogs whose "transactionType" string attibute matches one of three strings. How do I complete this query?



Thanks for any insights, - Dave
 
Justin Chi
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It should be :

You can refer to Chapter 15. Criteria Queries
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic