-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Mapping table with FK only (no PK)
PostPosted: Wed Jan 26, 2005 8:11 pm 
Newbie

Joined: Thu Dec 23, 2004 7:26 pm
Posts: 11
I have a legacy database table that has a defined FK only (no PK). I am having trouble mapping that in a Hibernate mapping document. I own (and have read a goodly part of) the HIA book, and searched the forums, but haven't found the answer. I'm certain this has been asked before, so I apologize in advance for asking again.

Can somebody please point me in the right direction for creation of a mapping document when the database table has no internal concept of identity (excepting Oracle's ROWID)?

I am using Oracle 8i, Hibernate 2.1.6.

Thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 26, 2005 8:22 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Map all columns of the table as a <composite-id>


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.