Community
Participate
Working Groups
The WDF tests assume that the persistent id is available right after the persist operation. The reasoning for this is deduced from the specification as follows: §3.2.2 Persisting an entity instance: A new entity instance becomes both managed and persistent by invoking the persist method on it. §3.2 Entity Instance’s Life Cycle A managed entity instance is an instance with a persistent identity that is currently associated with a persistence context. In EclipseLink however, the interpretation seems to be that the persist operation ensures that an entity will *eventually* get a persistent identity upon the flush operation. an entity the "persistent identity"
Created attachment 167466 [details] proposed patch Proposed patch for TestIdentity -> do a flush after persist Tested on MySQL -> OK
checked in at # 7178 tested on MySQL reviewed by Andreas
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink