-->
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: No way around bi-directional relationship?
PostPosted: Fri Apr 02, 2004 9:32 am 
Newbie

Joined: Thu Feb 19, 2004 5:11 am
Posts: 3
Hi all,

I've been using Hibernate with great success in a big software project. There's just one thing that especially my co-developer (who designed the object model) can't stand and that is that we have to have references from child classes to parent classes. He thinks it's very ugly and not necessarily object-oriented. I know that it can be done without the bi-directional association, but in that case we can't define the foreign key in the child table to be not null and Hibernate needs 3 statements to insert data instead of two (insert parent, insert child, update foreign key column in child) which we're not very happy with from the database side of things. Is there no way around this? If not, is by any chance something planned for Hibernate 3 to allow this?

Many thanks in advance and thanks for an otherwise great tool!

Thomas


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 02, 2004 1:50 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Post and vote to JIRA if youo believe this is a required feature

_________________
Emmanuel


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.