• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

multiple composit key

 
Ranch Hand
Posts: 401
Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

 
reply
    Bookmark Topic Watch Topic
  • New Topic