Community
Participate
Working Groups
Build Identifier: 20100617-1415 The detailed information is posted to http://www.eclipse.org/forums/index.php?t=msg&goto=547642 PLEASE READ THIS POST (it has screenshots) Reproducible: Always Steps to Reproduce: I have an entity Entity1 with a field Embedded1 embedded1. The class Embedded1 has a field: @ManyToOne(fetch=FetchType.LAZY) private Person person; To reproduce the problem: - create new Entity1 instance with embedded1 and person set - em.persist(entity1); - em.commit(); - try read em.find(Entity1.class, id).getEmbedded1().getPerson() will always return null
Created attachment 175094 [details] JUnit Test that fails This is a small Maven project than demonstrates the bug. It contains of - two @entity classes and one @embeddable, - persistence.xml, - pom.xml (does static weaving after compiling) - JUnit test that fails To run: - unpack the zip - run "mvn test" - Test will fail on second Assert.assertNotNull
Important point: weaving required to reproduce
pom.xml references EclipseLink 2.2.0-M1, but the same is with 2.1.0
Setting target and priority. See the following page for details of the meanings of these fields: http://wiki.eclipse.org/EclipseLink/Development/Bugs/Guidelines
It looks like it was fixed in 2.3.0
Closing because of above comment.
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink