After creating a mapping for 2 tables, I run my test it fails while loading up the configuration file with the following error (Foreign key (FKFE1D23E2CEA9600F:Pet_Table[Owner_ID])) must have same number of columns as the referenced primary key (Owner_Table [Owner_ID, Pet_ID])
We have a 1 to many relationship. The parent table (Owner) has 1 pk )Owner_ID) and the child table (Pet) has 2 pks (Owner ID and Pet ID)because of the releationship. This is Sybase
Any help in this regard is appreciated. I am using MyEclipse 4.0.3 GA (Hibernate 3.0)
|