Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
atlas
Project
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
dataplatform
atlas
Commits
bf5f8ef0
Commit
bf5f8ef0
authored
Apr 11, 2018
by
apoorvnaik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-2553: Glossary (DataAccess fix)
Change-Id: Ia3222215ee527357fdc264445939e94e1afde068
parent
54c31d5c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
14 deletions
+1
-14
GlossaryService.java
.../main/java/org/apache/atlas/glossary/GlossaryService.java
+1
-1
DataAccess.java
...main/java/org/apache/atlas/repository/ogm/DataAccess.java
+0
-13
No files found.
repository/src/main/java/org/apache/atlas/glossary/GlossaryService.java
View file @
bf5f8ef0
...
@@ -882,7 +882,7 @@ public class GlossaryService {
...
@@ -882,7 +882,7 @@ public class GlossaryService {
if
(
DEBUG_ENABLED
)
{
if
(
DEBUG_ENABLED
)
{
LOG
.
debug
(
"Creating relation between glossary = {} and term = {}"
,
glossaryTerm
.
getAnchor
().
getGlossaryGuid
(),
saved
.
getGuid
());
LOG
.
debug
(
"Creating relation between glossary = {} and term = {}"
,
glossaryTerm
.
getAnchor
().
getGlossaryGuid
(),
saved
.
getGuid
());
}
}
createRelationship
(
defineTermAnchorRelation
(
glossaryTerm
.
getAnchor
().
getGlossaryGuid
(),
glossaryTerm
.
getGuid
()));
createRelationship
(
defineTermAnchorRelation
(
glossaryTerm
.
getAnchor
().
getGlossaryGuid
(),
saved
.
getGuid
()));
}
}
}
}
...
...
repository/src/main/java/org/apache/atlas/repository/ogm/DataAccess.java
View file @
bf5f8ef0
...
@@ -71,19 +71,6 @@ public class DataAccess {
...
@@ -71,19 +71,6 @@ public class DataAccess {
throw
new
AtlasBaseException
(
AtlasErrorCode
.
DATA_ACCESS_SAVE_FAILED
,
obj
.
toString
());
throw
new
AtlasBaseException
(
AtlasErrorCode
.
DATA_ACCESS_SAVE_FAILED
,
obj
.
toString
());
}
}
// Since mutation context has guid information, attempt to set the same.
if
(
entityMutationResponse
.
getFirstEntityCreated
()
!=
null
)
{
if
(
LOG
.
isDebugEnabled
())
{
LOG
.
debug
(
"Object created"
);
}
obj
.
setGuid
(
entityMutationResponse
.
getFirstEntityCreated
().
getGuid
());
}
else
if
(
entityMutationResponse
.
getFirstEntityUpdated
()
!=
null
)
{
if
(
LOG
.
isDebugEnabled
())
{
LOG
.
debug
(
"Object updated"
);
}
obj
.
setGuid
(
entityMutationResponse
.
getFirstEntityUpdated
().
getGuid
());
}
return
this
.
load
(
obj
);
return
this
.
load
(
obj
);
}
finally
{
}
finally
{
...
...
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