Related: Trouble Shooting


We can have our entity beans extend io.ebean.Model. They then have save() and delete() methods.

BaseDomain extends Model ...

import io.ebean.Model;

open class BaseDomain : Model() {


Now we can just save() and delete() them:

val customer = Customer("Hello entity bean")
// insert

// update = "Goodbye"

// delete the bean

Note that and Model.delete() use the default server.

Edit Page