Get the latest updated row saved with Ebean in Play Framework

ebean, playframework

Solution

You hava that object yet! check:

...
object.save();
debug("ID of the new object is: " + object.id);

Problem

I am learning the Play Framework. I have created some Form and saved the corresponding object into my database with: ``` object.save(); ``` I want to get the object that is just saved. I checked the documentation and found out that save() doesn't have a return type. So is there anyway I can get that object? (The id column of the object table is set to auto-increment, if that may help)

Original source