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-192
Type: Task Task
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Andy Jefferson
Votes: 0
Watchers: 0

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

Add checks for null/empty input to JPA criteria to cater for user error

Created: 26/Oct/12 05:07 PM   Updated: 26/Oct/12 05:39 PM   Resolved: 26/Oct/12 05:08 PM
Component/s: API
Affects Version/s: None
Fix Version/s: 3.1.3, 3.2.0.m1

 Description  « Hide
Calling crit.orderBy(myEmptyList) really ought to throw a StupidUserException, but the JPA API doesn't mention any exception that you can throw, so we just have to guard against invalid input

Andy Jefferson added a comment - 26/Oct/12 05:08 PM
SVN trunk and branches/3.1 have this

Andy Jefferson made changes - 26/Oct/12 05:08 PM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Andy Jefferson made changes - 26/Oct/12 05:39 PM
Status Resolved [ 5 ] Closed [ 6 ]