i am getting this error while trying to save data into model in db.
@Entity
public class User extends Model {
@Required
public String name;
@Email
public String email;
@Required @MaxLength(value=10)
public String username;
@Required @MinLength(value=4)
public String password;
@Id
public int id;
}
this is my Class.
this is the error while i am trying to save the model into db.
i will appreciate any effort for help! many thanks.
EDIT: table structure is here
I think with ebean you have to physically name and annotate your id. You may also have to tell it the name of the backing sequencer as well (I dont remember). This shows how to do it.
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