我想在没有@Id注解的情况下使用生成的UUID,因为我的主键是其他东西。 该应用程序不会生成UUID,你有什么想法?
这是我的声明:
@Column(name = "APP_UUID", unique = true)
@GeneratedValue(generator="system-uuid")
@GenericGenerator(name="system-uuid", strategy = "uuid")
private String uuid;
我正在使用Hibernate 4.3.0与Oracle10g。