T
- the temporal type (e.g. Date or Calendar
)public abstract class TemporalConverter<T> extends AbstractValueConverter<T>
EntityClass
.Constructor and Description |
---|
TemporalConverter(AttributeAccessor attribute,
boolean mapKey)
Creates a new instance of this
TemporalConverter . |
Modifier and Type | Method and Description |
---|---|
String |
getExpression(Date value,
GeneratorContext context)
Converts the given value into an SQL expression.
|
getExpression
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getExpression
public TemporalConverter(AttributeAccessor attribute, boolean mapKey)
TemporalConverter
.attribute
- the inspected attributemapKey
- indicates that the converter is used for the key of a map propertypublic String getExpression(Date value, GeneratorContext context)
value
- the value to convertcontext
- the current contextCopyright © 2016 fastnate.org. All rights reserved.