public class ReadableInstantTranslatorFactory extends ValueTranslatorFactory<org.joda.time.ReadableInstant,Date>
All custom translators must be registered *before* entity classes are registered.
Constructor and Description |
---|
ReadableInstantTranslatorFactory() |
Modifier and Type | Method and Description |
---|---|
protected ValueTranslator<org.joda.time.ReadableInstant,Date> |
createValueTranslator(TypeKey<org.joda.time.ReadableInstant> tk,
CreateContext ctx,
Path path)
Create a translator, knowing that we have the appropriate type.
|
create
protected ValueTranslator<org.joda.time.ReadableInstant,Date> createValueTranslator(TypeKey<org.joda.time.ReadableInstant> tk, CreateContext ctx, Path path)
ValueTranslatorFactory
createValueTranslator
in class ValueTranslatorFactory<org.joda.time.ReadableInstant,Date>
tk
- type is guaranteed to erase to something assignable to ClassCopyright © 2016. All rights reserved.