提交 c91f13a9 编写于 作者: ibizdev's avatar ibizdev

ibiz4j 发布系统代码

上级 b23b6d5e
...@@ -129,7 +129,7 @@ public class MetaEntity extends EntityMP implements Serializable { ...@@ -129,7 +129,7 @@ public class MetaEntity extends EntityMP implements Serializable {
@JsonIgnore @JsonIgnore
@JSONField(serialize = false) @JSONField(serialize = false)
@TableField(exist = false) @TableField(exist = false)
private List<cn.ibizlab.core.lite.domain.MetaDataSet> datasets; private List<cn.ibizlab.core.lite.domain.MetaDataSet> metadataset;
/** /**
* 属性 * 属性
...@@ -137,7 +137,7 @@ public class MetaEntity extends EntityMP implements Serializable { ...@@ -137,7 +137,7 @@ public class MetaEntity extends EntityMP implements Serializable {
@JsonIgnore @JsonIgnore
@JSONField(serialize = false) @JSONField(serialize = false)
@TableField(exist = false) @TableField(exist = false)
private List<cn.ibizlab.core.lite.domain.MetaField> fields; private List<cn.ibizlab.core.lite.domain.MetaField> metafield;
/** /**
* 实体关系 * 实体关系
...@@ -145,7 +145,7 @@ public class MetaEntity extends EntityMP implements Serializable { ...@@ -145,7 +145,7 @@ public class MetaEntity extends EntityMP implements Serializable {
@JsonIgnore @JsonIgnore
@JSONField(serialize = false) @JSONField(serialize = false)
@TableField(exist = false) @TableField(exist = false)
private List<cn.ibizlab.core.lite.domain.MetaRelationship> parententitys; private List<cn.ibizlab.core.lite.domain.MetaRelationship> metarelationship;
/** /**
* 实体关系 * 实体关系
...@@ -153,7 +153,7 @@ public class MetaEntity extends EntityMP implements Serializable { ...@@ -153,7 +153,7 @@ public class MetaEntity extends EntityMP implements Serializable {
@JsonIgnore @JsonIgnore
@JSONField(serialize = false) @JSONField(serialize = false)
@TableField(exist = false) @TableField(exist = false)
private List<cn.ibizlab.core.lite.domain.MetaRelationship> subentitys; private List<cn.ibizlab.core.lite.domain.MetaRelationship> metarelationship;
/** /**
......
...@@ -72,10 +72,10 @@ public class MetaEntityServiceImpl extends ServiceImpl<MetaEntityMapper, MetaEnt ...@@ -72,10 +72,10 @@ public class MetaEntityServiceImpl extends ServiceImpl<MetaEntityMapper, MetaEnt
fillParentData(et); fillParentData(et);
if(!this.retBool(this.baseMapper.insert(et))) if(!this.retBool(this.baseMapper.insert(et)))
return false; return false;
metadatasetService.saveByEntityId(et.getEntityId(),et.getDatasets()); metadatasetService.saveByEntityId(et.getEntityId(),et.getMetadataset());
metafieldService.saveByEntityId(et.getEntityId(),et.getFields()); metafieldService.saveByEntityId(et.getEntityId(),et.getMetafield());
metarelationshipService.saveByEntityId(et.getEntityId(),et.getParententitys()); metarelationshipService.saveByEntityId(et.getEntityId(),et.getMetarelationship());
metarelationshipService.saveByRefEntityId(et.getEntityId(),et.getSubentitys()); metarelationshipService.saveByRefEntityId(et.getEntityId(),et.getMetarelationship());
CachedBeanCopier.copy(get(et.getEntityId()),et); CachedBeanCopier.copy(get(et.getEntityId()),et);
return true; return true;
} }
...@@ -93,10 +93,10 @@ public class MetaEntityServiceImpl extends ServiceImpl<MetaEntityMapper, MetaEnt ...@@ -93,10 +93,10 @@ public class MetaEntityServiceImpl extends ServiceImpl<MetaEntityMapper, MetaEnt
fillParentData(et); fillParentData(et);
if(!update(et,(Wrapper) et.getUpdateWrapper(true).eq("entityid",et.getEntityId()))) if(!update(et,(Wrapper) et.getUpdateWrapper(true).eq("entityid",et.getEntityId())))
return false; return false;
metadatasetService.saveByEntityId(et.getEntityId(),et.getDatasets()); metadatasetService.saveByEntityId(et.getEntityId(),et.getMetadataset());
metafieldService.saveByEntityId(et.getEntityId(),et.getFields()); metafieldService.saveByEntityId(et.getEntityId(),et.getMetafield());
metarelationshipService.saveByEntityId(et.getEntityId(),et.getParententitys()); metarelationshipService.saveByEntityId(et.getEntityId(),et.getMetarelationship());
metarelationshipService.saveByRefEntityId(et.getEntityId(),et.getSubentitys()); metarelationshipService.saveByRefEntityId(et.getEntityId(),et.getMetarelationship());
CachedBeanCopier.copy(get(et.getEntityId()),et); CachedBeanCopier.copy(get(et.getEntityId()),et);
return true; return true;
} }
...@@ -134,10 +134,10 @@ public class MetaEntityServiceImpl extends ServiceImpl<MetaEntityMapper, MetaEnt ...@@ -134,10 +134,10 @@ public class MetaEntityServiceImpl extends ServiceImpl<MetaEntityMapper, MetaEnt
et.setEntityId(key); et.setEntityId(key);
} }
else{ else{
et.setDatasets(metadatasetService.selectByEntityId(key)); et.setMetadataset(metadatasetService.selectByEntityId(key));
et.setFields(metafieldService.selectByEntityId(key)); et.setMetafield(metafieldService.selectByEntityId(key));
et.setParententitys(metarelationshipService.selectByEntityId(key)); et.setMetarelationship(metarelationshipService.selectByEntityId(key));
et.setSubentitys(metarelationshipService.selectByRefEntityId(key)); et.setMetarelationship(metarelationshipService.selectByRefEntityId(key));
} }
return et; return et;
} }
......
...@@ -134,7 +134,7 @@ ...@@ -134,7 +134,7 @@
<!--输出实体[META_DATASET]数据结构 --> <!--输出实体[META_DATASET]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-meta_dataset-16-7"> <changeSet author="a_A_5d9d78509" id="tab-meta_dataset-18-7">
<createTable tableName="IBZDATASET"> <createTable tableName="IBZDATASET">
<column name="DATASETID" remarks="" type="VARCHAR(100)"> <column name="DATASETID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_META_DATASET_DATASETID"/> <constraints primaryKey="true" primaryKeyName="PK_META_DATASET_DATASETID"/>
...@@ -156,7 +156,7 @@ ...@@ -156,7 +156,7 @@
<!--输出实体[META_ENTITY]数据结构 --> <!--输出实体[META_ENTITY]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-meta_entity-37-8"> <changeSet author="a_A_5d9d78509" id="tab-meta_entity-45-8">
<createTable tableName="IBZENTITY"> <createTable tableName="IBZENTITY">
<column name="ENTITYID" remarks="" type="VARCHAR(100)"> <column name="ENTITYID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_META_ENTITY_ENTITYID"/> <constraints primaryKey="true" primaryKeyName="PK_META_ENTITY_ENTITYID"/>
...@@ -178,7 +178,7 @@ ...@@ -178,7 +178,7 @@
<!--输出实体[META_FIELD]数据结构 --> <!--输出实体[META_FIELD]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-meta_field-96-9"> <changeSet author="a_A_5d9d78509" id="tab-meta_field-98-9">
<createTable tableName="IBZFIELD"> <createTable tableName="IBZFIELD">
<column name="FIELDID" remarks="" type="VARCHAR(100)"> <column name="FIELDID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_META_FIELD_FIELDID"/> <constraints primaryKey="true" primaryKeyName="PK_META_FIELD_FIELDID"/>
...@@ -258,7 +258,7 @@ ...@@ -258,7 +258,7 @@
<!--输出实体[META_RELATION]数据结构 --> <!--输出实体[META_RELATION]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-meta_relation-41-12"> <changeSet author="a_A_5d9d78509" id="tab-meta_relation-45-12">
<createTable tableName="IBZRELATION"> <createTable tableName="IBZRELATION">
<column name="RELATIONID" remarks="" type="VARCHAR(100)"> <column name="RELATIONID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_META_RELATION_RELATIONID"/> <constraints primaryKey="true" primaryKeyName="PK_META_RELATION_RELATIONID"/>
...@@ -292,7 +292,7 @@ ...@@ -292,7 +292,7 @@
<!--输出实体[DST_VIEW]外键关系 --> <!--输出实体[DST_VIEW]外键关系 -->
<!--输出实体[META_DATASET]外键关系 --> <!--输出实体[META_DATASET]外键关系 -->
<!--输出实体[META_ENTITY]外键关系 --> <!--输出实体[META_ENTITY]外键关系 -->
<changeSet author="a_A_5d9d78509" id="fk-meta_entity-37-13"> <changeSet author="a_A_5d9d78509" id="fk-meta_entity-45-13">
<addForeignKeyConstraint baseColumnNames="DSID" baseTableName="IBZENTITY" constraintName="DER1N_META_ENTITY_DST_DATASOUR" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="DSID" referencedTableName="IBZDATASOURCE" validate="true"/> <addForeignKeyConstraint baseColumnNames="DSID" baseTableName="IBZENTITY" constraintName="DER1N_META_ENTITY_DST_DATASOUR" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="DSID" referencedTableName="IBZDATASOURCE" validate="true"/>
</changeSet> </changeSet>
<!--输出实体[META_FIELD]外键关系 --> <!--输出实体[META_FIELD]外键关系 -->
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册