DataNucleus JIRA is now in read-only mode. Raise any new issues in GitHub against the plugin that it applies to.
DataNucleus JIRA will remain for the foreseeable future but will eventually be discontinued

em.find doesn't provide any translation of java Number types but would be nice if it did

When a user calls
em.find(MyEntity.class, val);
the val has to be the exact type of the PK value of MyEntity. It will fail if the pk field is of type Long yet an Integer is passed in. We should do basic type conversion for the Short/Integer/Long types as a minimum

Description

When a user calls
em.find(MyEntity.class, val);
the val has to be the exact type of the PK value of MyEntity. It will fail if the pk field is of type Long yet an Integer is passed in. We should do basic type conversion for the Short/Integer/Long types as a minimum