| Hi,
 Class Client {
 @Embedded
 Address address;
 }
 
 Class Address{
 @Column(name="STREET")
 String street;
 }
 
 There is a problem in sorting query results by street. I know that when I sort by columns in referenced entities i have to add criteria for them. And that works fine. But there is a problem, when referenced entity is not separate column - STREET column is part of CLIENT table and there is no ADDRESS table.
 
 Here's what hibernate says: could not resolve property: street of: cbki.client.bo.Client
 
 Just like hibernate wouldn't recognize it's embedded.
 
 
 |