【发布时间】:2016-04-04 12:16:26
【问题描述】:
ORA-02289: 序列不存在,hibernbate 出错
【问题讨论】:
-
对于 Oracle,您需要在数据库和实体中使用如下序列:
@Id @SequenceGenerator(sequenceName = "yourSeq", name = "yourSeq", allocationSize = 1, initialValue = 1) @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "yourSeq")