de.terrestris.shoguncore.converter.PropertyValueConverter Maven / Gradle / Ivy
/**
*
*/
package de.terrestris.shoguncore.converter;
import org.apache.commons.lang3.math.NumberUtils;
import javax.persistence.AttributeConverter;
/**
* This converter can be used for the values of the type Map.
*
* The values of the map will be converted to strings to persist them in a
* string column in the database. A string value coming from the database will
* be converted to the best matching Java type.
*
* Currently {@link String}, {@link Long}, {@link Double} and {@link Boolean}
* values are supported.
*
* @author Nils Bühner
*/
public class PropertyValueConverter implements AttributeConverter
© 2015 - 2024 Weber Informatics LLC | Privacy Policy