Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Object Relational Mapping and the fly likes Hibernate query question Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Reply Bookmark "Hibernate query question" Watch "Hibernate query question" New topic
Author

Hibernate query question

jim li
Ranch Hand

Joined: May 20, 2008
Posts: 177
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

Joined: Nov 06, 2000
Posts: 1506
Your question is not clear. Are you saying the results should be returned as a list?


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hibernate query question
 
Similar Threads
c:set with target
problem with ClassCastException
private constructor
adding text to one column
how to get data from alias