Home Tutorialhelp Comment possible to order on property of a many-to-one ?

 
 

Comment

Antoine_h
possible to order on property of a many-to-one ?,
October 14, 2008 at 4:11 AM

is it possible to order on a property of an entity that is related to the main entity with a many-to-one property ?

Class A have a Class B property
Class B have a name or category property

is it possible to order by the name or the category ?

how ?
with A.b.name ... it is not working ?
I have a "org.hibernate.QueryException: could not resolve property:..."

Thanks,
Antoine
View All Comments | View Tutorial
Advertisement
Related Tutorial and Articles
Advertisements Advertisements
 

 

 

DMCA.com