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
1559d4c1
Commit
1559d4c1
authored
Jan 21, 2022
by
qiuchaofei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1 修改按照id查找的返回类型,2 添加sql,字段的同步
parent
0f43e75f
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
3 deletions
+28
-3
RelationalGraphController.java
...etadataRelation/controller/RelationalGraphController.java
+9
-1
Neo4jSchemaRepository.java
...aRelation/respository/metadata/Neo4jSchemaRepository.java
+18
-1
Neo4jViewRepository.java
...ataRelation/respository/metadata/Neo4jViewRepository.java
+1
-1
MetadataServiceImpl.java
...ta/metadataRelation/service/impl/MetadataServiceImpl.java
+0
-0
No files found.
src/main/java/com/keymobile/metadata/metadataRelation/controller/RelationalGraphController.java
View file @
1559d4c1
...
...
@@ -112,7 +112,15 @@ public class RelationalGraphController {
return
metadataService
.
getMetaDataByMetadataId
(
metadataId
);
}
//展开当前节点
@ApiOperation
(
tags
=
""
,
value
=
"传入一个节点的元数据id,返回当前节点的关系"
)
@RequestMapping
(
path
=
"/expandNode"
,
method
=
RequestMethod
.
GET
)
public
ReturnReslult
expandNode
(
String
dataId
,
String
size
)
{
logger
.
info
(
"传入的元模型名称是:"
+
dataId
);
ReturnReslult
returnReslult
=
new
ReturnReslult
();
return
returnReslult
;
}
//表的分析,链路分析,表与其他表的上下游关系,其他表可以继续下钻,并且可以收缩。
...
...
src/main/java/com/keymobile/metadata/metadataRelation/respository/metadata/Neo4jSchemaRepository.java
View file @
1559d4c1
...
...
@@ -11,8 +11,25 @@ import java.util.List;
@Repository
public
interface
Neo4jSchemaRepository
extends
Neo4jRepository
<
Neo4jSchema
,
Long
>
{
Neo4jSchema
findNeo4jSchemaByMetadataId
(
String
metadataId
);
@Query
(
"match (n:Neo4jSchema{metadataId:{schemaId}} )-[r:Composition]->(m) return m "
)
@Query
(
"match (n:Neo4jSchema{metadataId:{schemaId}} )-[r:Composition]->(m) return m order by m.name "
)
List
<
BaseNode
>
getChildrenBySchemaId
(
@Param
(
"schemaId"
)
String
schemaId
);
@Query
(
"match (n:Neo4jSchema{metadataId:{schemaId}} )-[r:Composition]->(m:neo4jTable) return m order by m.name "
)
List
<
BaseNode
>
getTableBySchemaId
(
@Param
(
"schemaId"
)
String
schemaId
);
@Query
(
"match (n:Neo4jSchema{metadataId:{schemaId}} )-[r:Composition]->(m:neo4jView) return m order by m.name "
)
List
<
BaseNode
>
getViewBySchemaId
(
@Param
(
"schemaId"
)
String
schemaId
);
@Query
(
"match (n:Neo4jSchema{metadataId:{schemaId}} )-[r:Composition]->(m:neo4jFunction) return m order by m.name "
)
List
<
BaseNode
>
getFunctionBySchemaId
(
@Param
(
"schemaId"
)
String
schemaId
);
@Query
(
"match (n:Neo4jSchema{metadataId:{schemaId}} )-[r:Composition]->(m:neo4jProcedure) return m order by m.name "
)
List
<
BaseNode
>
getProcedureBySchemaId
(
@Param
(
"schemaId"
)
String
schemaId
);
}
src/main/java/com/keymobile/metadata/metadataRelation/respository/metadata/Neo4jViewRepository.java
View file @
1559d4c1
...
...
@@ -10,5 +10,5 @@ import java.util.List;
@Repository
public
interface
Neo4jViewRepository
extends
Neo4jRepository
<
Neo4jView
,
Long
>
{
List
<
Neo4jView
>
findNeo4jViewByMetadataId
(
String
metadataId
);
Neo4jView
findNeo4jViewByMetadataId
(
String
metadataId
);
}
src/main/java/com/keymobile/metadata/metadataRelation/service/impl/MetadataServiceImpl.java
View file @
1559d4c1
This diff is collapsed.
Click to expand it.
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