Suppose I have:
case class SomeModel(
id : Pk[Long],
description : String
)
object SomeModel extends Magic[SomeModel] {
def ayDogAy = {
var aydog = SomeModel(NotAssigned, "aydog")
this.insert(aydog)
}
}
How do I get back the inserted id of aydog?
If it matters, my backing database is Postgres
In Play 2 if you have an autoincrement long PK: