Package org.hibernate.type.format
Interface FormatMapper
- All Known Implementing Classes:
AbstractJsonFormatMapper
,JacksonJsonFormatMapper
,JacksonXmlFormatMapper
,JaxbXmlFormatMapper
,JsonBJsonFormatMapper
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
Modifier and TypeMethodDescription<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 Details
-
fromString
Deserializes an object from the character sequence. -
toString
Serializes the object to a string.
-