@Embedded in OrderBy query in method signature

Viewed 33

I have an Entity(lets consider Workplace ) with an type field and Embedded field eg.

@Embedded
private WorkplaceAddress workplaceAddress;

and it contains fields

@Embeddable
class WorkplaceAddress {

private String street;

private String city;
}

//etc

And now I would like make a query in the methodSignature: I tried:

List<Workplace> findAllOrderByWorkplaceAddressStreetAscWorkplaceAddressCityAsc 
List<Workplace> findAllOrderByWorkplaceAddress_StreetAscWorkplaceAddress_CityAsc //considered as field not Ascending
List<Workplace> findAllOrderByWorkplaceAddress_Street_AscWorkplaceAddress_City_Asc
List<Workplace> findAllByTypeOrderByWorkplaceAddress_StreetAscWorkplaceAddress_CityAsc 

Is this feature available yet?

0 Answers
Related