这是我的声明:
@Column(name = "APP_UUID",unique = true) @GeneratedValue(generator="system-uuid") @GenericGenerator(name="system-uuid",strategy = "uuid") private String uuid;
我正在使用Hibernate 4.3.0与Oracle10g.
@Id @GeneratedValue(generator = "hibernate-uuid") @GenericGenerator(name = "uuid",strategy = "uuid2") @Column(name = "uuid",unique = true) private String uuid;
读这个link读取hibernate文件是可能的