Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzlite
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzlite
提交
c91f13a9
提交
c91f13a9
编写于
4年前
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ibiz4j 发布系统代码
上级
b23b6d5e
变更
3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
21 行增加
和
21 行删除
+21
-21
MetaEntity.java
...src/main/java/cn/ibizlab/core/lite/domain/MetaEntity.java
+4
-4
MetaEntityServiceImpl.java
...ibizlab/core/lite/service/impl/MetaEntityServiceImpl.java
+12
-12
h2_table.xml
ibzlite-core/src/main/resources/liquibase/h2_table.xml
+5
-5
未找到文件。
ibzlite-core/src/main/java/cn/ibizlab/core/lite/domain/MetaEntity.java
浏览文件 @
c91f13a9
...
...
@@ -129,7 +129,7 @@ public class MetaEntity extends EntityMP implements Serializable {
@JsonIgnore
@JSONField
(
serialize
=
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 {
@JsonIgnore
@JSONField
(
serialize
=
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 {
@JsonIgnore
@JSONField
(
serialize
=
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 {
@JsonIgnore
@JSONField
(
serialize
=
false
)
@TableField
(
exist
=
false
)
private
List
<
cn
.
ibizlab
.
core
.
lite
.
domain
.
MetaRelationship
>
subentitys
;
private
List
<
cn
.
ibizlab
.
core
.
lite
.
domain
.
MetaRelationship
>
metarelationship
;
/**
...
...
This diff is collapsed.
Click to expand it.
ibzlite-core/src/main/java/cn/ibizlab/core/lite/service/impl/MetaEntityServiceImpl.java
浏览文件 @
c91f13a9
...
...
@@ -72,10 +72,10 @@ public class MetaEntityServiceImpl extends ServiceImpl<MetaEntityMapper, MetaEnt
fillParentData
(
et
);
if
(!
this
.
retBool
(
this
.
baseMapper
.
insert
(
et
)))
return
false
;
metadatasetService
.
saveByEntityId
(
et
.
getEntityId
(),
et
.
get
Datasets
());
metafieldService
.
saveByEntityId
(
et
.
getEntityId
(),
et
.
get
Fields
());
metarelationshipService
.
saveByEntityId
(
et
.
getEntityId
(),
et
.
get
Parententitys
());
metarelationshipService
.
saveByRefEntityId
(
et
.
getEntityId
(),
et
.
get
Subentitys
());
metadatasetService
.
saveByEntityId
(
et
.
getEntityId
(),
et
.
get
Metadataset
());
metafieldService
.
saveByEntityId
(
et
.
getEntityId
(),
et
.
get
Metafield
());
metarelationshipService
.
saveByEntityId
(
et
.
getEntityId
(),
et
.
get
Metarelationship
());
metarelationshipService
.
saveByRefEntityId
(
et
.
getEntityId
(),
et
.
get
Metarelationship
());
CachedBeanCopier
.
copy
(
get
(
et
.
getEntityId
()),
et
);
return
true
;
}
...
...
@@ -93,10 +93,10 @@ public class MetaEntityServiceImpl extends ServiceImpl<MetaEntityMapper, MetaEnt
fillParentData
(
et
);
if
(!
update
(
et
,(
Wrapper
)
et
.
getUpdateWrapper
(
true
).
eq
(
"entityid"
,
et
.
getEntityId
())))
return
false
;
metadatasetService
.
saveByEntityId
(
et
.
getEntityId
(),
et
.
get
Datasets
());
metafieldService
.
saveByEntityId
(
et
.
getEntityId
(),
et
.
get
Fields
());
metarelationshipService
.
saveByEntityId
(
et
.
getEntityId
(),
et
.
get
Parententitys
());
metarelationshipService
.
saveByRefEntityId
(
et
.
getEntityId
(),
et
.
get
Subentitys
());
metadatasetService
.
saveByEntityId
(
et
.
getEntityId
(),
et
.
get
Metadataset
());
metafieldService
.
saveByEntityId
(
et
.
getEntityId
(),
et
.
get
Metafield
());
metarelationshipService
.
saveByEntityId
(
et
.
getEntityId
(),
et
.
get
Metarelationship
());
metarelationshipService
.
saveByRefEntityId
(
et
.
getEntityId
(),
et
.
get
Metarelationship
());
CachedBeanCopier
.
copy
(
get
(
et
.
getEntityId
()),
et
);
return
true
;
}
...
...
@@ -134,10 +134,10 @@ public class MetaEntityServiceImpl extends ServiceImpl<MetaEntityMapper, MetaEnt
et
.
setEntityId
(
key
);
}
else
{
et
.
set
Datasets
(
metadatasetService
.
selectByEntityId
(
key
));
et
.
set
Fields
(
metafieldService
.
selectByEntityId
(
key
));
et
.
set
Parententitys
(
metarelationshipService
.
selectByEntityId
(
key
));
et
.
set
Subentitys
(
metarelationshipService
.
selectByRefEntityId
(
key
));
et
.
set
Metadataset
(
metadatasetService
.
selectByEntityId
(
key
));
et
.
set
Metafield
(
metafieldService
.
selectByEntityId
(
key
));
et
.
set
Metarelationship
(
metarelationshipService
.
selectByEntityId
(
key
));
et
.
set
Metarelationship
(
metarelationshipService
.
selectByRefEntityId
(
key
));
}
return
et
;
}
...
...
This diff is collapsed.
Click to expand it.
ibzlite-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
c91f13a9
...
...
@@ -134,7 +134,7 @@
<!--输出实体[META_DATASET]数据结构 -->
<changeSet
author=
"a_A_5d9d78509"
id=
"tab-meta_dataset-1
6
-7"
>
<changeSet
author=
"a_A_5d9d78509"
id=
"tab-meta_dataset-1
8
-7"
>
<createTable
tableName=
"IBZDATASET"
>
<column
name=
"DATASETID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_META_DATASET_DATASETID"
/>
...
...
@@ -156,7 +156,7 @@
<!--输出实体[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"
>
<column
name=
"ENTITYID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_META_ENTITY_ENTITYID"
/>
...
...
@@ -178,7 +178,7 @@
<!--输出实体[META_FIELD]数据结构 -->
<changeSet
author=
"a_A_5d9d78509"
id=
"tab-meta_field-9
6
-9"
>
<changeSet
author=
"a_A_5d9d78509"
id=
"tab-meta_field-9
8
-9"
>
<createTable
tableName=
"IBZFIELD"
>
<column
name=
"FIELDID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_META_FIELD_FIELDID"
/>
...
...
@@ -258,7 +258,7 @@
<!--输出实体[META_RELATION]数据结构 -->
<changeSet
author=
"a_A_5d9d78509"
id=
"tab-meta_relation-4
1
-12"
>
<changeSet
author=
"a_A_5d9d78509"
id=
"tab-meta_relation-4
5
-12"
>
<createTable
tableName=
"IBZRELATION"
>
<column
name=
"RELATIONID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_META_RELATION_RELATIONID"
/>
...
...
@@ -292,7 +292,7 @@
<!--输出实体[DST_VIEW]外键关系 -->
<!--输出实体[META_DATASET]外键关系 -->
<!--输出实体[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"
/>
</changeSet>
<!--输出实体[META_FIELD]外键关系 -->
...
...
This diff is collapsed.
Click to expand it.
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录