2.0.1
Bugfix
- fix (#63: automatically calculating stack and local variables in asm. via: @moroyimk
- fix: fix the issue of
Duration
type in custom xml - revert: revert the change of 2.0.0-beta.1
To be compatible with
${ ng.valueFmt( value ) }
, when value is null, it can still output a placeholder. You can use the following method:${ ng.valueFmt( value ) ! "null" }
- fix: fix the issue of field type is Byte, cannot be parsed to entity object.
Feature
-
Supporting geometry types.
db type java type geo(point) org.springframework.data.geo.Box geo(linestring) org.springframework.data.geo.Point geo(polygon) org.springframework.data.geo.Polygon geo Object -
Supporting props can be directly mapped to entity objects.
@Table(name = "column_alias") public class ColumnAlias { @Id @Column(name = "id_no") private String idNo; @Column(name = "first_name") private String firstName; @Column(name = "last_name") private String lastName; @Transient private String ignoreMe; }
<select id="propsToObj"> MATCH (n :column_alias) WHERE n.column_alias.first_name is not null RETURN properties(n), "ignoreMe" as ignoreMe LIMIT 1 </select>
Upgrade
- upgrade: upgrade fastjson version to 2.0.57.
更新日志
Bugfix
- fix #63: 在 ASM 生成代理类时,自动计算方法的最大栈深及局部变量表个数。 来自: @moroyimk
- fix: 修复自定义 xml 中,
Duration
作为属性类型不被支持的问题 - revert: 回退关于 2.0.0-beta.1 的修改。
为兼容
${ ng.valueFmt( value ) }
, 当 value 为 null 时,依然可以输出占位符,可使用以下方式${ ng.valueFmt( value ) ! "null" }
- fix: 修复字段属性为 Byte 时,不能正常解析到实体对象的问题。
新特性
-
支持Geo类型
字段类型 属性类型 geo(point) org.springframework.data.geo.Box geo(linestring) org.springframework.data.geo.Point geo(polygon) org.springframework.data.geo.Polygon geo Object -
支持节点的属性对象字段可以与实体对象直接映射
@Table(name = "column_alias") public class ColumnAlias { @Id @Column(name = "id_no") private String idNo; @Column(name = "first_name") private String firstName; @Column(name = "last_name") private String lastName; @Transient private String ignoreMe; }
<select id="propsToObj"> MATCH (n :column_alias) WHERE n.column_alias.first_name is not null RETURN properties(n), "ignoreMe" as ignoreMe LIMIT 1 </select>
Upgrade
- upgrade: 升级 fastjson 版本至 2.0.57.