column: id (should be mapped with insert="false" update="false")

[size=x-large][color=orange][b]Spring集成Hibernate:column: id (should be mapped with insert="false" update="false")[/b][/color][/size]

[color=red][b]原因:column重复定义[/b][/color]

状况1:*.hbm文件





状况2:@Entity实体类

@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(name = "id", nullable = false)
private int id;

@Column(name = "id", nullable = true)
private String uuid;

你可能感兴趣的:(bug集合,bug,spring,hibernate)