-
-
Save gaalha/1ea43d10e31a43f31db99b31dc40b041 to your computer and use it in GitHub Desktop.
[Ebean raw update query] Execute raw sql update #sql #ebean
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment