You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to play-framework
How can I update a number of entries in a single JPA request
equivalent to an SQL UPDATE statement?
Something like: public static int update(String query, Object[]
params)?
Thanks,
Punc.
Fehmi Can SAĞLAM
unread,
Oct 12, 2011, 12:14:18 PM10/12/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to play-fr...@googlegroups.com
I don't know if there is a better way but you can do it like below.
MyModel.em().createQuery("update MyModel set field=:field where ....").setParameter("field", field).executeUpdate();
computerpunc
unread,
Oct 12, 2011, 9:30:21 PM10/12/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to play-framework
It works for me. Thanks.
I just wished there would be an update method as there are methods for
find, count and delete.