datanucleus-core
datanucleus-core copied to clipboard
Enhancement contract : dnNewObjectIdInstance() with compound PK when using persistent properties is generated incorrect for JPA
When enhancing with JPA and the entity has a compound PK and uses properties, the enhanced class has an incorrect dnNewObjectIdInstance method. It currently is generated as
public final Object dnNewObjectIdInstance(Object key) { return new CompoundPK2((String) key); }
but the compound pk has no String constructor since it's not a JPA requirement