File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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.

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: multiple composit key