<< Back to previous view

[NUCJPA-166] em.find doesn't provide any translation of java Number types but would be nice if it did Created: 06/Feb/12  Updated: 05/Mar/12  Resolved: 06/Feb/12

Status: Closed
Project: DataNucleus API JPA
Component/s: None
Affects Version/s: None
Fix Version/s: 3.0.7

Type: New Feature Priority: Minor
Reporter: Andy Jefferson Assignee: Andy Jefferson
Resolution: Fixed Votes: 0

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

Comment by Andy Jefferson [ 06/Feb/12 12:13 PM ]
SVN trunk adds type conversion
Generated at Mon Dec 18 02:18:00 CET 2017 using JIRA 4.0#466.