Hibernate version:2.1.4
This is a legacy environment(no domain and data model changes are allowed) and I am in the process of implementing hibernate to replace existing home-grown ORM solution
I have the following classes
Code:
1. public class abstract LocatableItem{...}
2. public class Building extends LocatableItem {...}
3. public class Equipment extends LocatableItem {...}
4. public class Location {
List locatableItems;
void setLocatableItems(List locatableItems) {
this.locatbleItems = locatableItems;
}
}
And I have the following tables
1. Location
2. Building with foreign key relationship to Location
3. Equipment with foreign key relationship to Location
I would appreciate any ideas to map the Location table.
Thank you.
DR.[/list]