自定义sql使用枚举值
type = '${@xxxxxxx@TYPE1.getValue}'
xxxxxxx为枚举类完整路径
@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
只反序列化
(ex.实体的某个属性只用于后端处理不返回给前端时使用该注解)
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
只序列化
自定义sql使用枚举值
type = '${@xxxxxxx@TYPE1.getValue}'
xxxxxxx为枚举类完整路径
@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
只反序列化
(ex.实体的某个属性只用于后端处理不返回给前端时使用该注解)
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
只序列化