我在基于hibernate的应用程序中使用hbm2ddl来生成db模式。hibernate.hbm2ddl.auto属性的值为create-drop。public class testTable1 { @GeneratedValue(strategy = GenerationType.SEQUENCEGenerationType.SEQUENCE)
Long
在尝试使用SQL查询插入元素之后,我为我插入的元素创建了数据库实体,它告诉我id已经存在。javax.persistence.GeneratedValue;import javax.persistence.Id;
public class Fnc { @GeneratedValue(strategy = GenerationType.IDENTITY)
@Columnthis.n_phase