Package org.hibernate.type.format
Interface FormatMapper
-
- All Known Implementing Classes:
JacksonJsonFormatMapper
,JacksonXmlFormatMapper
,JaxbXmlFormatMapper
,JsonBJsonFormatMapper
@Incubating public interface FormatMapper
A mapper for mapping objects to and from a format.- A
FormatMapper
for JSON may be selected using the configuration property "hibernate.type.json_format_mapper". - A
FormatMapper
for XML may be selected using the configuration property "hibernate.type.xml_format_mapper".
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> T
fromString(CharSequence charSequence, JavaType<T> javaType, WrapperOptions wrapperOptions)
Deserializes an object from the character sequence.<T> String
toString(T value, JavaType<T> javaType, WrapperOptions wrapperOptions)
Serializes the object to a string.
-
-
-
Method Detail
-
fromString
<T> T fromString(CharSequence charSequence, JavaType<T> javaType, WrapperOptions wrapperOptions)
Deserializes an object from the character sequence.
-
toString
<T> String toString(T value, JavaType<T> javaType, WrapperOptions wrapperOptions)
Serializes the object to a string.
-
-