rzo1 opened a new pull request, #188:
URL: https://github.com/apache/openjpa/pull/188

   `getReference(entity)` only read the primary key for entities with a single 
id field, so IdClass and EmbeddedId entities failed with a misleading "null pk" 
error. The id is now derived via the state manager or `ApplicationIds`, and the 
entity class is resolved through superclasses so runtime subclasses work. An 
instance without an assigned id fails with a clear message; 
`TestGetReferenceByEntity` covers single, IdClass and EmbeddedId ids for 
managed, detached and new instances.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to