hibernate中带有generatedvalue和genericgenerator的自定义注解

jfgube3f  于 2021-07-26  发布在  Java
关注(0)|答案(0)|浏览(230)

如何在hibernate中创建自定义注解

@Id
    @GeneratedValue(generator = “UUID”)
    @GenericGenerator(
        name = “UUID”,
        strategy = “org.hibernate.id.UUIDGenerator”,
    )
    @Column(name = “id”, updatable = false, nullable = false)

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题