Hazem-Ben-Khalfallah
7/4/2013 - 11:12 AM

Execute raw sql update

Execute raw sql update

public static final String SQL_UPDATE = "update person set  usr_name = :name ";
 
final Update update = Ebean.createUpdate(Person.class, SQL_UPDATE);
update.setParameter("name", "new name");
final int updatedRows = update.execute();