T - the type of the attributeC - the type of the database columnpublic class CustomValueConverter<T,C> extends Object implements ValueConverter<T>
AttributeConverter.| Constructor and Description |
|---|
CustomValueConverter(javax.persistence.AttributeConverter<T,C> customConverter,
ValueConverter<C> valueConverter) |
| Modifier and Type | Method and Description |
|---|---|
ColumnExpression |
getExpression(T value,
GeneratorContext context)
Builds the expression for writing the given value into an SQL clause.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetExpression@ConstructorProperties(value={"customConverter","valueConverter"}) @Generated(value="lombok") public CustomValueConverter(javax.persistence.AttributeConverter<T,C> customConverter, ValueConverter<C> valueConverter)
public ColumnExpression getExpression(T value, GeneratorContext context)
ValueConvertergetExpression in interface ValueConverter<T>value - the current valuecontext - the current context (contains the database dialect).Copyright © 2020 fastnate.org. All rights reserved.