JPA mapping to Oracle user defined types

不羁岁月 提交于 2019-12-24 10:26:20

问题


Oracle allows for the definition of user defined types. Hibernate can map to these types using the org.hibernate.usertype.UserType class. This defines a mapping between a java bean and the Oracle type.

Using straight JPA, how would one do the same thing?


回答1:


You cannot do it with straight JPA. It doesn't have concept of user defined type. For this need you have to use vendor extensions.



来源:https://stackoverflow.com/questions/8823855/jpa-mapping-to-oracle-user-defined-types

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!