Creating Converters Based on Multiple Attributes in JPA 2.1

JPA 2.1 introduces converter types . I found examples of converters based on a single entity attribute .

Is it possible to create a type converter based on several entity attributes?
Are there any examples?

+4
source share
2 answers

I think JPA 2.1 didn't go that far. If you use Hibernate and you can use its specific functions (which are not yet supported by JPA), you can simply use the Hibernate Composite User Type .

Hibernate SQL (, Currency, Money).

, -, DAO/PersistenceUnits.

-, - , Hibernate.

+2

DataNucleus JPA , JPA (, ).

( ).

+1

All Articles