-->
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.  [ 3 posts ] 
Author Message
 Post subject: one-to-one association instead of one-to-many
PostPosted: Thu Nov 03, 2005 9:19 am 
Newbie

Joined: Mon Oct 31, 2005 12:01 pm
Posts: 12
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 3.1 rc1

Hi,

does anybody know how to customize a one-to-one association instead of one-to-many in reveng.xml

thanks in advance...


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 04, 2005 4:59 am 
Newbie

Joined: Mon Oct 31, 2005 12:01 pm
Posts: 12
do i understand it right, that the reverse engineering tool
transforms foreign key constraints always into a
<many-to-one> and a corresponding <set> of <one-to-many>?

Doesn't make a sense to generate <one-to-one>, if the
foreign-key-column is declared as uniq?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 04, 2005 6:30 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
provide a patch and we will apply that ;)

reveng.xml does not yet include full control over the foreign key associations - but it will.

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.