JPA exception could give more informations

Bug #507684 reported by Roch Delsalle
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
play framework
Status tracked in 1.0
1.0
Fix Released
Undecided
Unassigned
1.1
Fix Committed
Undecided
Unassigned

Bug Description

public static void myfunction(int id) {
   List<MyModel> ms = MyModel.find("id > ?", id).fetch();

would return:

IllegalArgumentException occured : Error while executing query from models.MyModel where id > ?

Perhaps It can be improved by telling that the wrong type of argument has been specified. ( It should be a long in this case )

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.