I have class RoomToday with some field. Inside this class there is a object of Room. I have no field name in RoomToday class.
class RoomToday {
Room room;
//other fields
}
class Room {
String name;
//
}
And i have repository RoomTodayrepository. Can i have method which sort by Room's name?
Something like that. This request must be in JPA repository:
List<RoomToday> findByIdInOrderByRoomNameAsc(Collection<UUID> id);