-->
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: Can hibernate REALLY not index inverse collections?
PostPosted: Fri Dec 02, 2005 10:00 am 
Newbie

Joined: Wed Nov 16, 2005 11:20 am
Posts: 11
I have two entities - Attribute and AttributeValue
Each Attribute has a number of AttributeValues.
This is mapped as a bi-directional association, with a one-to-many in the Attribute mapping, and a many-to-one in the AttributeValue mapping. inverse="true" is set on the Attribute side. This leads to the desired mapping, and an "attribute" field in the AttributeValue table. So far so good. But.....

When I try to make the collection indexed, it doesn't work because that side of the collection is the inverse.

Am I missing something major here, or is this a serious omission?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 02, 2005 11:01 am 
Hibernate Team
Hibernate Team

Joined: Thu Dec 18, 2003 9:55 am
Posts: 1977
Location: France
on the collection side:inverse=false

on te many-to-one side insert="false" update="false"

_________________
Anthony,
Get value thanks to your skills: http://www.redhat.com/certification


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.