public class JsonSerializationStrategy extends Object implements SerializationStrategy
| Constructor and Description |
|---|
JsonSerializationStrategy() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
deserialize(String serialized,
Class<T> targetType)
Deserialize payload into the expected
targetType |
GridType |
overrideType(org.hibernate.type.Type type)
If the datastore does not support a
Type the dialect might override it with a custom one. |
String |
serialize(Object payload)
Serialize the
payload into the target representation. |
public <T> T deserialize(String serialized, Class<T> targetType)
SerializationStrategytargetTypedeserialize in interface SerializationStrategyT - expected typeserialized - string in the serialized formtargetType - expected typetargetType or nullpublic String serialize(Object payload)
SerializationStrategypayload into the target representation.serialize in interface SerializationStrategypayload - the payloadpublic GridType overrideType(org.hibernate.type.Type type)
SerializationStrategyType the dialect might override it with a custom one.overrideType in interface SerializationStrategytype - The Type that might need to be overriddentype or null if the type does not need to be overriddenCopyright © 2010–2016 Hibernate. All rights reserved.