@Id @GeneratedValue(generator=”system-uuid”)
@GenericGenerator(name=”system-uuid”,strategy = “uuid”)
@Column(name = “id”, unique = true, nullable = false, length = 64)
private String id;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
@GeneratedValue(generator=”system-uuid”)报错
No generator named “system-uuid” is defined in the persistence unit
哪位高手知道怎么改?
@GenericGenerator(name=”system-uuid”,strategy = “uuid”)
@Column(name = “id”, unique = true, nullable = false, length = 64)
private String id;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
@GeneratedValue(generator=”system-uuid”)报错
No generator named “system-uuid” is defined in the persistence unit
哪位高手知道怎么改?
解决方案
40