• 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?
 
What are you doing? You are supposed to be reading this 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!