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

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -