[PersistenceException: Error getting sequence nextval]

前端 未结 3 960
忘掉有多难
忘掉有多难 2021-01-18 15:57

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         


        
3条回答
  •  执笔经年
    2021-01-18 16:20

    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.

提交回复
热议问题