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 set
ERROR: HHH000091: Expected type: java.lang.Long, actual value: java.lang.String
应该怎么解决
呦呦米
相关分类