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

Popular posts from this blog

android - Inheriting from Theme.AppCompat* -

broadcastreceiver - android BOOT_COMPLETED not received if not activity intent-filter -

basic authentication with http post params android -