????????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應(yīng)該怎么解決
關(guān)于hibernate 數(shù)據(jù)格式問題
cooleephone
2017-05-01 11:06:47