Using hibernate criteria query (distinct) in DAO to get refined result from db
Vinod Vinu
Ranch Hand
Joined: Aug 30, 2009
Posts: 217
posted
0
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
posted
0
somebody please tell me
subject: Using hibernate criteria query (distinct) in DAO to get refined result from db