JAVA实体类ORACLE主键ID的JPA注解错误解决

@Id  
	@GeneratedValue(strategy=GenerationType.SEQUENCE,generator="LI-GEN")
	@SequenceGenerator(name="LI-GEN",sequenceName="LI_SEQ",allocationSize=1)
    @Column(name="uu_id", nullable=false, length=20)




ID的注解中,= "ID", nullable = false, unique = true, insertable = true, precision = 22, scale = 0)注解中绝对不能出现 unique = true 这个属性
记得:一定要移除unique = true


你可能感兴趣的:(oracle,java)