File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "multiple composit key" Watch "multiple composit key" New topic

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

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

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,

I agree. Here's the link:
subject: multiple composit key
It's not a secret anymore!