wood burning stoves 2.0*
The moose likes Object Relational Mapping and the fly likes multiple composit key Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "multiple composit key" Watch "multiple composit key" New topic
Author

multiple composit key

Rauhl Roy
Ranch Hand

Joined: Aug 01, 2006
Posts: 401

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.

 
Don't get me started about those stupid light bulbs.
 
subject: multiple composit key
 
Similar Threads
Hibernate 3.1.3: many-to-one mapping with property-ref to formula
unique=true in hibernate
Hibernate: Can someone verify my mapping configuration?
EJB3: how to update the bean on the many side of a one-to-many relation?
Parent child join query