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

Hibernate query question

 
jim li
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
class A{

List templist.

}

class B{
String firstName
String lastName
}

web app which allows to to search for firstName in class B, and return all the Class A containing Class B which has this firstName. (the search is 'LIKE' )

how can i write this query ?

 
Bosun Bello
Ranch Hand
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your question is not clear. Are you saying the results should be returned as a list?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic