I have a OneToOne mapping between Foo and Bar where Bar uses a derived identifier. So Bar is the "dependent" entity and has a single primary key attribute which is mapped by the relationship attribute (i.e. using `Id` on the `OneToOne` relationship).
Foo is mapped like this:
This mapping is described in the section 188.8.131.52 of the JPA 2.0 specification, Example 4, case (a) and works with the RI (run mvn test -Peclipselink,h2 on the attached project).
However, Hibernate fails to initialize and complains about the mappedBy attribute:
Run mvn test to reproduce.
Hibernate 3.5+, any database.
I've added the attached test as a "FailureExpected test that reproduces this issue:
The test has been added to hibernate-core master and 3.6.
Yawn... Is no one able to fix this, has this been fixed already, or is no one interested in fixing this?
Just stuck of this bug too. Is any activity on it on?
Just debugged my app deep into Hibernate's mapper. Not my case. Though, given property somestuff and method getSomeStuff() if I annotate methods as latest guidelines advice I need to write maddedBy="someStuff" not "somestuff" whatever name my entity class property has in case-sensitive point.
Closing this one – corrected by