public final class JPAConverter<T,U> extends AbstractConverter<T,U>
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.
Constructor and Description |
---|
JPAConverter(java.lang.Class<? extends javax.persistence.AttributeConverter<U,T>> klass) |
Modifier and Type | Method and Description |
---|---|
U |
from(T t)
Convert a database object to a user object
|
T |
to(U u)
Convert a user object to a database object
|
fromType, toString, toType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
andThen, inverse, of, ofNullable
Copyright © 2018. All Rights Reserved.