Fixed code
This commit is contained in:
parent
ede8f1be76
commit
69647bbc32
|
@ -38,7 +38,6 @@ import org.gcube.informationsystem.resourceregistry.types.relations.IsRelatedToT
|
||||||
import org.gcube.informationsystem.types.OrientDBType;
|
import org.gcube.informationsystem.types.OrientDBType;
|
||||||
import org.gcube.informationsystem.types.TypeBinder;
|
import org.gcube.informationsystem.types.TypeBinder;
|
||||||
import org.gcube.informationsystem.types.reference.Type;
|
import org.gcube.informationsystem.types.reference.Type;
|
||||||
import org.gcube.informationsystem.types.reference.TypeWithProperties;
|
|
||||||
import org.gcube.informationsystem.types.reference.entities.EntityType;
|
import org.gcube.informationsystem.types.reference.entities.EntityType;
|
||||||
import org.gcube.informationsystem.types.reference.entities.FacetType;
|
import org.gcube.informationsystem.types.reference.entities.FacetType;
|
||||||
import org.gcube.informationsystem.types.reference.entities.ResourceType;
|
import org.gcube.informationsystem.types.reference.entities.ResourceType;
|
||||||
|
@ -292,7 +291,7 @@ public class SchemaManagementImpl implements SchemaManagement {
|
||||||
if(!(type instanceof ResourceType)) {
|
if(!(type instanceof ResourceType)) {
|
||||||
// A Resource cannot contains any properties.
|
// A Resource cannot contains any properties.
|
||||||
|
|
||||||
Set<PropertyDefinition> propertyDefinitions = ((TypeWithProperties) type).getProperties();
|
Set<PropertyDefinition> propertyDefinitions = type.getProperties();
|
||||||
|
|
||||||
if(propertyDefinitions!=null) {
|
if(propertyDefinitions!=null) {
|
||||||
for(PropertyDefinition propertyDefinition : propertyDefinitions) {
|
for(PropertyDefinition propertyDefinition : propertyDefinitions) {
|
||||||
|
|
Loading…
Reference in New Issue