Hi,
Does anyone know how to associate, in Hibernate, to two classes via a map of sets:
SortedMap<key,SortedSet>
I have serached the forums and read all the Hibernate doco, but could not find such a thing explained.
To give some context:
+----------+ has +------+ departs from +---------+ |DealBundle|----------------| Deal |------------------| Airport | +----------+ 1 0..* +------+ 1 1 +---------+ |1 | 1 | arrives at | +--------------------------+
public class DealBundle {
public long id;
public SortedMap<Airport,SortedSet<Deal>>
dealsByDepartureAirport;
}
public class Deal {
public long id;
public Airport departureAirport;
public Airport arrivalAirport;
public float totalPrice;
}
public class Airport {
public long id;
public long IATACode;
public long name;
}