如果hibernate中用到自增序列,且数据映射不是通过*.hbm.xml映射对象,而是通过bean对象注释来进行映射。必须添加@SequenceGenerator(name="GFRA_DELAYSRECORD_SEQ",sequenceName="GFRA_DELAYRECORD_SEQU")@GeneratedValue(strategy=GenerationType.SEQUENCE,generator="GFRA_DELAYSRECORD_SEQ")否则,会出现新增ID无法添加异常...
查看全文