Extend entity JCR types.
[gpl/argeo-suite.git] / org.argeo.entity.core / src / org / argeo / entity / core / JcrEntityDefinition.java
index 15fb812c0567505fef6c80ee9a9b228bb444780e..f76eb63fa96491b4df5874f246ff896de56cdfa1 100644 (file)
@@ -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);