提交 b2f2e752 编写于 作者: sq3536's avatar sq3536

tmp

上级 84b10ba1
...@@ -23,6 +23,7 @@ public class DataModel { ...@@ -23,6 +23,7 @@ public class DataModel {
@JSONField(serialize = false) @JSONField(serialize = false)
private DataModel parentDataModel; private DataModel parentDataModel;
@JSONField(ordinal = 1)
private String dataModelName; private String dataModelName;
public String getDataModelName() public String getDataModelName()
{ {
...@@ -35,6 +36,7 @@ public class DataModel { ...@@ -35,6 +36,7 @@ public class DataModel {
return dataModelName; return dataModelName;
} }
@JSONField(ordinal = 2)
private LinkedHashSet<Property> objectProperties = new LinkedHashSet<>(); private LinkedHashSet<Property> objectProperties = new LinkedHashSet<>();
public void setObjectProperties(LinkedHashSet<Property> objectProperties) { public void setObjectProperties(LinkedHashSet<Property> objectProperties) {
if(objectProperties!=null) { if(objectProperties!=null) {
...@@ -43,6 +45,7 @@ public class DataModel { ...@@ -43,6 +45,7 @@ public class DataModel {
} }
} }
@JSONField(ordinal = 3)
private LinkedHashSet<DataModel> nestedDataModels = new LinkedHashSet<>(); private LinkedHashSet<DataModel> nestedDataModels = new LinkedHashSet<>();
public void setNestedDataModels(LinkedHashSet<DataModel> nestedDataModels) { public void setNestedDataModels(LinkedHashSet<DataModel> nestedDataModels) {
if(nestedDataModels!=null) { if(nestedDataModels!=null) {
...@@ -51,6 +54,7 @@ public class DataModel { ...@@ -51,6 +54,7 @@ public class DataModel {
} }
} }
@JSONField(ordinal = 4)
private LinkedHashSet<LayerMapping> layerMappings = new LinkedHashSet<>(); private LinkedHashSet<LayerMapping> layerMappings = new LinkedHashSet<>();
public void setLayerMappings(LinkedHashSet<LayerMapping> layerMappings) public void setLayerMappings(LinkedHashSet<LayerMapping> layerMappings)
{ {
......
...@@ -50,6 +50,7 @@ public class LayerMapping { ...@@ -50,6 +50,7 @@ public class LayerMapping {
return ""; return "";
} }
@JSONField(ordinal = 1)
private String selfPropertyColumn; private String selfPropertyColumn;
@JsonIgnore @JsonIgnore
...@@ -87,6 +88,7 @@ public class LayerMapping { ...@@ -87,6 +88,7 @@ public class LayerMapping {
return ""; return "";
} }
@JSONField(ordinal = 2)
private String parentPropertyColumn; private String parentPropertyColumn;
@Override @Override
......
...@@ -19,14 +19,19 @@ import java.util.LinkedHashSet; ...@@ -19,14 +19,19 @@ import java.util.LinkedHashSet;
@Accessors(chain = true) @Accessors(chain = true)
public class Model { public class Model {
@JSONField(ordinal = 1)
private String id; private String id;
@JSONField(ordinal = 2)
private String name; private String name;
@JSONField(ordinal = 3)
private String system; private String system;
@JSONField(ordinal = 4)
private String factEntity; private String factEntity;
@JSONField(ordinal = 5)
private DataModel model; private DataModel model;
...@@ -40,7 +45,7 @@ public class Model { ...@@ -40,7 +45,7 @@ public class Model {
Model model=JSONObject.toJavaObject(jo, Model.class); Model model=JSONObject.toJavaObject(jo, Model.class);
System.out.println(model.model.toString()); System.out.println(JSONObject.toJSONString(model));
} }
} }
...@@ -25,12 +25,16 @@ public class Property { ...@@ -25,12 +25,16 @@ public class Property {
@JSONField(serialize = false) @JSONField(serialize = false)
private DataModel ownerDataModel; private DataModel ownerDataModel;
@JSONField(ordinal = 1)
private String propertyName; private String propertyName;
@JSONField(ordinal = 2)
private String system; private String system;
@JSONField(ordinal = 3)
private String propertyEntity; private String propertyEntity;
@JSONField(ordinal = 4)
private LinkedHashSet<PropertyMapping> propertyMappings = new LinkedHashSet<>(); private LinkedHashSet<PropertyMapping> propertyMappings = new LinkedHashSet<>();
public void setPropertyMappings(LinkedHashSet<PropertyMapping> propertyMappings) public void setPropertyMappings(LinkedHashSet<PropertyMapping> propertyMappings)
{ {
......
...@@ -51,8 +51,10 @@ public class PropertyMapping { ...@@ -51,8 +51,10 @@ public class PropertyMapping {
return ""; return "";
} }
@JSONField(ordinal = 1)
private String selfPropertyColumn; private String selfPropertyColumn;
@JSONField(ordinal = 2)
private String joinPropertyName; private String joinPropertyName;
public String getJoinPropertyName() public String getJoinPropertyName()
...@@ -79,6 +81,7 @@ public class PropertyMapping { ...@@ -79,6 +81,7 @@ public class PropertyMapping {
return ""; return "";
} }
@JSONField(ordinal = 3)
private String joinPropertyColumn; private String joinPropertyColumn;
@Override @Override
......
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:pro="http://www.liquibase.org/xml/ns/pro" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/pro http://www.liquibase.org/xml/ns/pro/liquibase-pro-3.8.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd">
<changeSet author="mac (generated)" id="1603933536067-1">
<addColumn tableName="IBZFIELD">
<column name="ISENABLEAUDIT" type="INTEGER"/>
</addColumn>
</changeSet>
</databaseChangeLog>
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册