Class JsonToMapConverter
java.lang.Object
cn.net.pap.example.proguard.convert.JsonToMapConverter
public class JsonToMapConverter
extends Object
implements jakarta.persistence.AttributeConverter<Map<String,Object>,String>
使用方式如下,则会把字段存储一个字符串的类型
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconvertToDatabaseColumn
(Map<String, Object> attribute) convertToEntityAttribute
(String dbData)
-
Constructor Details
-
JsonToMapConverter
public JsonToMapConverter()
-
-
Method Details