postgresql是Hibernate在EclipseLink中用于映射java的PostgresUUIDType模拟。util。UUID到Postgres的“UUID”类型
使用Hibernate时,如果要将类型为java.util.UUID
的字段映射到PostgreSQL的uuid
类型,则可以将JPA实体的字段标记为@org.hibernate.annotations.Type(type="org.hibernate.type.PostgresUUIDType")
日食中有这样的类似物吗? 用编写自己的转换器(f.e.:http://www.enterprisedb.com/postgres-plus-edb-blog/richard-yen/4-steps-using-uuids-jpa-postgresql)找到解决方案并不方便
共 (0) 个答案