0
我在oracle中使用hibernate。 hibernate_sequence表有幾個SEQUENCE_NAME重複條目(一個小寫字母,另一個大寫字母)hibernate_sequence序列名的重複條目
@Entity
@Table (name = "service")
public class Service implements Serializable {
@GeneratedValue(strategy = GenerationType.TABLE, generator = "autogen")
@TableGenerator(name = "autogen", initialValue = 1, allocationSize = 1)
@Getter @Setter @Id private Long id;
像
Role 5
role 11
SERVICE 16
service 75
可能是Hibernate tries to create same Entity/Table twice when @TableGenerator is used - how to avoid it?
如果您嘗試新建/新建數據庫,是否會得到相同的結果?您可能在一段時間內更改了@Table中的名稱。 – gkamal