Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
neo4jRelation
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
qiuchaofei
neo4jRelation
Commits
645ccfa1
Commit
645ccfa1
authored
Nov 11, 2021
by
qiuchaofei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
返回结果添加元模型图标
parent
410acb68
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
24 deletions
+30
-24
MetaDataController.java
...adata/metadataRelation/controller/MetaDataController.java
+30
-24
No files found.
src/main/java/com/keymobile/metadata/metadataRelation/controller/MetaDataController.java
View file @
645ccfa1
...
@@ -51,6 +51,7 @@ public class MetaDataController {
...
@@ -51,6 +51,7 @@ public class MetaDataController {
*/
*/
@ApiOperation
(
tags
=
""
,
value
=
"获取所有的节点与关系"
)
@ApiOperation
(
tags
=
""
,
value
=
"获取所有的节点与关系"
)
@RequestMapping
(
path
=
"/result1"
,
method
=
RequestMethod
.
GET
)
public
ReturnReslult
getAllNodeAndRelation
()
{
public
ReturnReslult
getAllNodeAndRelation
()
{
logger
.
info
(
"开始获取所有的节点与关系"
);
logger
.
info
(
"开始获取所有的节点与关系"
);
ReturnReslult
result
=
new
ReturnReslult
();
ReturnReslult
result
=
new
ReturnReslult
();
...
@@ -306,33 +307,38 @@ public class MetaDataController {
...
@@ -306,33 +307,38 @@ public class MetaDataController {
}
}
}
}
for
(
Object
obj
:
child2Parent
.
keySet
()){
// for(Object obj : child2Parent.keySet()){
logger
.
info
(
"child:"
+
obj
+
" ,parent:"
+
child2Parent
.
get
(
obj
));
// logger.info("child:"+ obj + " ,parent:"+ child2Parent.get(obj));
}
// }
for
(
Object
obj
:
parent2Children
.
keySet
()){
// for(Object obj : parent2Children.keySet()){
List
<
String
>
children
=
parent2Children
.
get
(
obj
);
// List<String> children = parent2Children.get(obj);
logger
.
info
(
"parent:"
+
obj
);
// logger.info("parent:"+ obj);
for
(
String
child:
children
){
// for(String child:children){
logger
.
info
(
" child:"
+
child
);
// logger.info(" child:" + child );
}
// }
}
// }
//
// for(Object obj : source2Target.keySet()){
// List<String> targets = source2Target.get(obj);
// logger.info("source:"+ obj);
// for(String target:targets){
// logger.info(" target:" + target );
// }
// }
//
//
// for(Object obj : target2Source.keySet()){
// List<String> sources = target2Source.get(obj);
// logger.info("target:"+ obj);
// for(String source:sources){
// logger.info(" source:" + source );
// }
// }
for
(
Object
obj
:
source2Target
.
keySet
()){
List
<
String
>
targets
=
source2Target
.
get
(
obj
);
logger
.
info
(
"source:"
+
obj
);
for
(
String
target:
targets
){
logger
.
info
(
" target:"
+
target
);
}
}
logger
.
info
(
"关系的数量:"
+
result
.
getEdges
().
size
());
result
.
setMetaModelMap
(
metaModelMap
);
for
(
Object
obj
:
target2Source
.
keySet
()){
List
<
String
>
sources
=
target2Source
.
get
(
obj
);
logger
.
info
(
"target:"
+
obj
);
for
(
String
source:
sources
){
logger
.
info
(
" source:"
+
source
);
}
}
return
result
;
return
result
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment