Fixed bug

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry-orientdb-hooks@133542 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Luca Frosini 2016-10-25 16:43:15 +00:00
parent 4aa521cce6
commit 196af55502
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ public class HeaderHook<OrientGraphNoTx> extends ODocumentHookAbstract
public RESULT onRecordBeforeCreate(final ODocument iDocument) {
System.out.println("\n\n--------------\n" + iDocument);
ODocument oDocument = iDocument.field(Entity.HEADER_PROPERTY, Header.class);
ODocument oDocument = iDocument.field(Entity.HEADER_PROPERTY);
if(oDocument==null){
System.out.println("Header not present. Going to create it");
Header header = new Header();