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

阅读更多
Spring集成Hibernate:column: id (should be mapped with insert="false" update="false")

原因:column重复定义

状况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,spring,hibernate)