aspose file tools
The moose likes Object Relational Mapping and the fly likes Using hibernate criteria query (distinct) in DAO to get refined result from db Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Object Relational Mapping
Reply Bookmark "Using hibernate criteria query (distinct) in DAO to get refined result from db" Watch "Using hibernate criteria query (distinct) in DAO to get refined result from db" New topic
Author

Using hibernate criteria query (distinct) in DAO to get refined result from db

Vinod Vinu
Ranch Hand

Joined: Aug 30, 2009
Posts: 217
hi, iam trying to put distinct in hibernate criteria query but unable to get the desired result.

what i want ?
there are many records in db. It might be possible that some of those records belong to the same category.

i want to use projection, or distinct in dao to fetch those all records belonging to that same category i.e. on jsp only those records belonging to same category must be visible for once in grid.

please give me some hint or idea to achieve this.

thanks in advance


Vinod Kumar Nair
"Any fool can write code that a computer can understan. Good programmers write code that humans can understand."
Vinod Vinu
Ranch Hand

Joined: Aug 30, 2009
Posts: 217
somebody please tell me
 
 
subject: Using hibernate criteria query (distinct) in DAO to get refined result from db
 
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com