• 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
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!