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
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.

 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: multiple composit key
 
It's not a secret anymore!