private Long id;
private int state;
private String name;
@Id
@Column(name = "id", nullable = false, unique = true)
@GenericGenerator(name = "generator", strategy = "uuid")
@GeneratedValue(generator = "generator")
@Type(type="java.lang.Long")
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}使用注解总是提示格式不正确五月 01, 2017 10:56:14 上午 org.hibernate.property.BasicPropertyAccessor$BasicSetter setERROR: HHH000091: Expected type: java.lang.Long, actual value: java.lang.String应该怎么解决
添加回答
举报
0/150
提交
取消