I need to map two tables to a single class, having trouble figuring this out. One table is ROOMS, the other is TRAINERS.
The ROOMS table:
OOC_UNIT
Solution I've come up with seems to be working as far as querying data, I haven't tried any insert/update/delete yet.
I created the TRAINER object to extend the ROOM object.
public class Trainer extends Room {
...
}
Then I modified the mapping for ROOM to include a joined-subclass:
...
...
...
...
...
So far it appears to be working.
Thanks,
Nick