I am running MyElipse 5.1.0 GA. The database is Sybase, and the driver is the jConnect 5.5 jdbc 2 driver. I am trying to reverse engineer the current database to java code. The problem is that when hibernate completes the reverse I get classes that represent the join tables and not just the elements that I am expecting. Here is an example.
PERSON
————
aID
name
age
CAR
———-
bID
make
model
PERSON_CARS_XREF
————————–
aID
bID
date
enabled
I am expecting to see a Person class and a Car class and that a Person has a set of Cars. Instead what I get is a Person class that has a set of PersonCarsXref types. The PersonCarsXref types has a Set of Cars. The different thing to note is the 2 extra fields (date and enabled) within the PERSON_CARS_XREF table, these are maintained by the database and can be ignored. Any help is appreciated, thanks.