Commit a3bafb1e by apoorvnaik

ATLAS-2211: Dangling transaction issue within GraphBackedMetadataRepository

parent 27918145
...@@ -106,6 +106,7 @@ public class GraphBackedMetadataRepository implements MetadataRepository { ...@@ -106,6 +106,7 @@ public class GraphBackedMetadataRepository implements MetadataRepository {
public String getIdAttributeName() { public String getIdAttributeName() {
return Constants.GUID_PROPERTY_KEY; return Constants.GUID_PROPERTY_KEY;
} }
@Override @Override
public String getVersionAttributeName() { public String getVersionAttributeName() {
return Constants.VERSION_PROPERTY_KEY; return Constants.VERSION_PROPERTY_KEY;
...@@ -159,6 +160,7 @@ public class GraphBackedMetadataRepository implements MetadataRepository { ...@@ -159,6 +160,7 @@ public class GraphBackedMetadataRepository implements MetadataRepository {
} }
@Override @Override
@GraphTransaction
public ITypedReferenceableInstance getEntityDefinition(String guid) throws RepositoryException, EntityNotFoundException { public ITypedReferenceableInstance getEntityDefinition(String guid) throws RepositoryException, EntityNotFoundException {
return getEntityDefinitions(guid).get(0); return getEntityDefinitions(guid).get(0);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment