Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

multiple composit key

 
Rauhl Roy
Ranch Hand
Posts: 401
Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
may i know what should i do in Hibernate and its configuration file, if i have a data base table like this

Parent
-------
id varchar(); PK
name varchar();
other nullabe
child
----
id varchar(); PK
phonenumber int;PK
ssn int; PK
other int; nullble

Phone
------
phonename varchar();PK
Phonenumber int; PK
Phone_uniqueid int;pk

here , aparent can have more than one child and chaild can have more than one phone.

many i know how to define these in Hibernate xml and POJOs


many thanks,
rahul.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic