All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.optionfactory.hj.JsonDriver Maven / Gradle / Ivy

Go to download

Custom Hibernate types for serializing fields as JSON, using either jackson or gson

There is a newer version: 6.7
Show newest version
package net.optionfactory.hj;

import java.lang.reflect.Field;
import java.lang.reflect.Type;

/**
 * 
 * @author rferranti
 */
public interface JsonDriver {

    Object deserialize(String value, TypeDescriptor type);
    Object deserialize(String value, Type type);

    String serialize(Object value, TypeDescriptor type);
    String serialize(Object value, Type type);
    
    TypeDescriptor fieldType(Field field, Class context);
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy