@Column(name = "active")
private int active = -1;
I have to print the contents of FlightSectorVO order by fromStation, station( of StationVO) in ascending order. in DB, the from_station is a foreign key to the station_code field in station table and holds the value inside station_code of station table. However, I have to display the contents of flight_sector order by station from_ station (station_label in db).
In my DAO class I gave :
DetachedCriteria criteria = DetachedCriteria .forClass(FlightSectorVO.class);
Its displaying in the order of station code. How do i display the value of FlightSectorVO order by fromStation alphabetically in order by station.