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
Operations

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

Andy Jefferson added a comment - 06/Feb/12 12:13 PM
SVN trunk adds type conversion

Andy Jefferson made changes - 06/Feb/12 12:13 PM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Assignee Andy Jefferson [ andy ]
Fix Version/s 3.0.7 [ 11441 ]
Resolution Fixed [ 1 ]
Andy Jefferson made changes - 05/Mar/12 08:41 PM
Status Resolved [ 5 ] Closed [ 6 ]