posted 7 years ago
There are two entities and first entity is referred into second entity.
Entity 1:
Entity 2:
There is no annotation in Entity 2 on reference Yesh; Entity 1 have field annotated with name "YeshName_for_sort". But when i try to access above field as given in following example:
Main Class:
Sorting does not work. I also tried to change statements like:
or
but it is not working.
What annotations need to be implemented in entities or any changes in main program to access the field for sorting?