public class SqlTimestampDateConverter extends Object implements TypeConverter<Timestamp,Date>
Constructor and Description |
---|
SqlTimestampDateConverter() |
Modifier and Type | Method and Description |
---|---|
Date |
toDatastoreType(Timestamp time)
Method to convert the passed member value to the datastore type.
|
Timestamp |
toMemberType(Date value)
Method to convert the passed datastore value to the member type.
|
public Timestamp toMemberType(Date value)
TypeConverter
toMemberType
in interface TypeConverter<Timestamp,Date>
value
- Value from the datastorepublic Date toDatastoreType(Timestamp time)
TypeConverter
toDatastoreType
in interface TypeConverter<Timestamp,Date>
time
- Value from the memberCopyright © 2018. All rights reserved.