X-Git-Url: https://git.argeo.org/?p=gpl%2Fargeo-suite.git;a=blobdiff_plain;f=org.argeo.entity.core%2Fsrc%2Forg%2Fargeo%2Fentity%2Fcore%2FJcrEntityDefinition.java;h=f76eb63fa96491b4df5874f246ff896de56cdfa1;hp=15fb812c0567505fef6c80ee9a9b228bb444780e;hb=04cafe75836841a6c845b8dbc0cc80998442f78f;hpb=f1bad89ca61df0dc06b1304f147cf1c35d54803f diff --git a/org.argeo.entity.core/src/org/argeo/entity/core/JcrEntityDefinition.java b/org.argeo.entity.core/src/org/argeo/entity/core/JcrEntityDefinition.java index 15fb812..f76eb63 100644 --- a/org.argeo.entity.core/src/org/argeo/entity/core/JcrEntityDefinition.java +++ b/org.argeo.entity.core/src/org/argeo/entity/core/JcrEntityDefinition.java @@ -32,8 +32,8 @@ public class JcrEntityDefinition implements EntityDefinition { defaultEditoryId = properties.get(EntityConstants.DEFAULT_EDITORY_ID); String definitionPath = EntityNames.ENTITY_DEFINITIONS_PATH + '/' + type; if (!adminSession.itemExists(definitionPath)) { - Node entityDefinition = JcrUtils.mkdirs(adminSession, definitionPath); - entityDefinition.addMixin(EntityTypes.ENTITY_DEFINITION); + Node entityDefinition = JcrUtils.mkdirs(adminSession, definitionPath, EntityTypes.ENTITY_DEFINITION); +// entityDefinition.addMixin(EntityTypes.ENTITY_DEFINITION); adminSession.save(); } initJcr(adminSession);