• Post Reply Bookmark Topic Watch Topic
  • New Topic

Hibernate query question  RSS feed

 
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: 1512
  • 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
Boost this thread!