-->
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: incompl ddl output for unique foreign key association
PostPosted: Tue Jun 22, 2004 4:55 am 
Newbie

Joined: Tue Jun 22, 2004 4:36 am
Posts: 3
Hi,

I would like to restrict a many-to-one relation to a one-to-one relation with a unique foreign key association.

My problem is, that the ddl output includes no unique restriction for the foreign key.

Hibernate vers2.1.4
Database: Interbase Firebird 1.5
__________________

Assessment-Section table <-- 1 ---------- 1 --> Section table

The two mapping files include the following sniped code.


Assessment_Section.hbm.xml:


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 22, 2004 12:22 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
If ID_SECTION is unique, use it as the PK! Why do you define a composite PK is you have a unique column?? That makes *no* sense.


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.