Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement contract : dnNewObjectIdInstance() with compound PK when using persistent properties is generated incorrect for JPA #36

Open
andyjefferson opened this issue Apr 11, 2016 · 0 comments

Comments

@andyjefferson
Copy link
Member

andyjefferson commented Apr 11, 2016

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

@andyjefferson andyjefferson changed the title JPA : jdoNewObjectIdInstance() with compound PK when using persistent properties is generated incorrect Enhancement Contract : dnNewObjectIdInstance() with compound PK when using persistent properties is generated incorrect for JPA Sep 15, 2017
@andyjefferson andyjefferson changed the title Enhancement Contract : dnNewObjectIdInstance() with compound PK when using persistent properties is generated incorrect for JPA Enhancement contract : dnNewObjectIdInstance() with compound PK when using persistent properties is generated incorrect for JPA Sep 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant