posted 16 years ago
Hi all i am new to hibernate, and i am trying to join two tables called person and contact.I am getting the error in mapping. Please tell whats the problem.
Person Table SQL
create table person (Personid int Not null, street char (20) not null,
contactid int not null,
constraint primary_table Primary key (personid),
constraint foreign_contact foreign key (contactid) references Contact (ID))
Contact Table SQL
create table CONTACT (ID int Not null, FIRSTNAME varchar(50), LASTNAME varchar(50), EMAIL varchar(50))
person class :
Contact Class
And here is the mapping file for contact class
And the person mapping file for person
I am getting the following error
Thanks in advance....