Package org.fastnate.generator.converter
Class DateConverter
java.lang.Object
org.fastnate.generator.converter.AbstractDateConverter<Date>
org.fastnate.generator.converter.DateConverter
- All Implemented Interfaces:
ValueConverter<Date>
Converts a date property of an
EntityClass to SQL.- Author:
- Andreas Penski
-
Constructor Summary
ConstructorsConstructorDescriptionDateConverter(jakarta.persistence.TemporalType type) Creates a new instance ofDateConverter.DateConverter(AttributeAccessor attribute, boolean mapKey) Creates a new instance ofDateConverter. -
Method Summary
Methods inherited from class org.fastnate.generator.converter.AbstractDateConverter
getExpression, getExpressionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.fastnate.generator.converter.ValueConverter
getExpression
-
Constructor Details
-
DateConverter
Creates a new instance ofDateConverter.- Parameters:
attribute- the inspected attributemapKey- indicates that the converter is used for the key of a map property
-
DateConverter
public DateConverter(jakarta.persistence.TemporalType type) Creates a new instance ofDateConverter.- Parameters:
type- the temporal type of the property
-