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