This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: multiple composit key
It's not a secret anymore!