报错:unknown id generator
1,检查model页面有没有ID自增语句,如下
@Column(name = "ID")
@SequenceGenerator(name="bistg.SEQ_HA_PROPERTY", sequenceName="bistg.SEQ_HA_PROPERTY" ,allocationSize=1)
@Id
@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="bistg.SEQ_HA_PROPERTY")
}
2.如果上面没有错,就是建表时候没有创建建表序列
Create sequence
create sequence SEQ_HA_PROPERTY
minvalue 1
maxvalue 9999999999999999999999999999
start with 1
increment by 1
cache 20;
即可