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)
You hava that object yet! check:
...
object.save();
debug("ID of the new object is: " + object.id);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With