-->
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.  [ 1 post ] 
Author Message
 Post subject: Over use of one-to-many relationship?
PostPosted: Sat Sep 08, 2007 10:57 am 
Newbie

Joined: Wed Sep 05, 2007 7:35 pm
Posts: 3
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:
3

Name and version of the database you are using:
Mysql

I use one-to-many relationships a lot, the docs say that is a "rare" relationship and many-to-one is a more common unidirectional relationship. To me, I never could get the queries to run properly with a many-to-one relationship (for example with a where clause).

Am I following a bad practice.

Normally, I use the following structure:
<bag
name="terms"
lazy="false"
order-by="id"
cascade="all">
<key column="category_name"/>
<one-to-many
class="org.spirit.bean.impl.BotListPostImageMetadata" />
</bag>


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

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.