playframework - Get the latest updated row saved with Ebean in Play Framework -
i learning play framework. have created form , saved corresponding object database with:
object.save(); i want object saved. checked documentation , found out save() doesn't have return type.
so there anyway can object? (the id column of object table set auto-increment, if may help)
you hava object yet! check:
... object.save(); debug("id of new object is: " + object.id);
Comments
Post a Comment