user1052610
user1052610

Reputation: 4719

JPA mapping to Oracle user defined types

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?

Upvotes: 1

Views: 2180

Answers (1)

Mikko Maunu
Mikko Maunu

Reputation: 42084

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.

Upvotes: 2

Related Questions