-->
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: getReferencedProperty on org.hibernate.mapping.OneToMany
PostPosted: Thu Apr 24, 2008 2:32 am 
Newbie

Joined: Mon Nov 06, 2006 6:19 pm
Posts: 16
Hello,

while developing Envers (http://www.jboss.org/envers), I noticed that when a one-to-many bidirectional relation, mapped with JPA (@ManyToOne and @OneToMany(mappedBy="...")), is translated to hibernate mappings, the org.hibernate.mapping.Collection object corresponding to the "one" side of the relation (this Value is taken from the org.hibernate.mapping.Property) doesn't have the referencedPropertyName set - and since I use mappedBy, shouldn't it be set to this value?

When I map a bidirectional one-to-one relation, the not-owning side has the referencedPropertyName set to the value of the mappedBy attribute.

--
Adam


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.