java.lang.Object
org.jooq.impl.AbstractConverter<T,U>
org.jooq.impl.JPAConverter<T,U>
- All Implemented Interfaces:
Serializable
,Converter<T,U>
A converter that delegates data type conversions to a JPA
AttributeConverter
.
This is particularly useful when generating code from a
JPADatabase
, which reverse engineers JPA annotated entities, in
case of which, by default, the AttributeConverter
annotations are
discovered automatically and the user-defined type is applied also in the
jOOQ meta model.
- Author:
- Lukas Eder
- See Also:
- Serialized Form
-
Constructor Summary
ConstructorDescriptionJPAConverter(Class<? extends javax.persistence.AttributeConverter<U,T>> klass)
-
Method Summary
Methods inherited from class org.jooq.impl.AbstractConverter
fromType, toString, toType
-
Constructor Details
-
JPAConverter
-
-
Method Details
-
from
Description copied from interface:Converter
Read and convert a database object to a user object.- Parameters:
t
- The database object.- Returns:
- The user object.
-
to
Description copied from interface:Converter
Convert and write a user object to a database object.- Parameters:
u
- The user object.- Returns:
- The database object.
-