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
Issue Details (XML | Word | Printable)

Key: NUCJPA-166
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Andy Jefferson
Reporter: Andy Jefferson
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.
DataNucleus API JPA

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

Created: 06/Feb/12 11:59 AM   Updated: 05/Mar/12 08:41 PM   Resolved: 06/Feb/12 12:13 PM
Component/s: None
Affects Version/s: None
Fix Version/s: 3.0.7

 Description  « Hide
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

Sort Order: Ascending order - Click to sort in descending order
Andy Jefferson added a comment - 06/Feb/12 12:13 PM
SVN trunk adds type conversion