From 32b5499b2efdfc296305f937a82ad30631a9ea39 Mon Sep 17 00:00:00 2001 From: "luca.frosini" Date: Mon, 11 Jun 2018 10:03:46 +0000 Subject: [PATCH] Refs #11288: Made resource-registry more RESTful Task-Url: https://support.d4science.org/issues/11288 git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@168999 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../resourceregistry/dbinitialization/SchemaActionImpl.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/org/gcube/informationsystem/resourceregistry/dbinitialization/SchemaActionImpl.java b/src/main/java/org/gcube/informationsystem/resourceregistry/dbinitialization/SchemaActionImpl.java index d4bd1d0..95d790f 100644 --- a/src/main/java/org/gcube/informationsystem/resourceregistry/dbinitialization/SchemaActionImpl.java +++ b/src/main/java/org/gcube/informationsystem/resourceregistry/dbinitialization/SchemaActionImpl.java @@ -32,6 +32,7 @@ public class SchemaActionImpl implements SchemaAction { public > void manageRelationClass(Class r) throws Exception { try { + ((SchemaManagementImpl) schemaManagement).setTypeName(TypeBinder.getType(r)); String json = TypeBinder.serializeType(r); logger.trace(json); if(ConsistsOf.class.isAssignableFrom(r)) { @@ -51,6 +52,7 @@ public class SchemaActionImpl implements SchemaAction { @Override public void manageEntityClass(Class e) throws Exception { try { + ((SchemaManagementImpl) schemaManagement).setTypeName(TypeBinder.getType(e)); String json = TypeBinder.serializeType(e); logger.trace(json); if(Facet.class.isAssignableFrom(e)) { @@ -69,6 +71,7 @@ public class SchemaActionImpl implements SchemaAction { @Override public void manageEmbeddedClass(Class e) throws Exception { try { + ((SchemaManagementImpl) schemaManagement).setTypeName(TypeBinder.getType(e)); String json = TypeBinder.serializeType(e); logger.trace(json); schemaManagement.create(json, AccessType.EMBEDDED);