This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository topia. See http://git.nuiton.org/topia.git commit 22b866fd95496182fc265e7ccfddd80fe4ec530a Author: Sylvain Bavencoff <bavencoff@codelutin.com> Date: Tue Sep 29 15:30:12 2015 +0200 fix generated EntityEnum constructor (fixes #3778) --- .../nuiton/topia/templates/EntityEnumTransformer.java | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/topia-templates/src/main/java/org/nuiton/topia/templates/EntityEnumTransformer.java b/topia-templates/src/main/java/org/nuiton/topia/templates/EntityEnumTransformer.java index 54c62c7..c2fbdb8 100644 --- a/topia-templates/src/main/java/org/nuiton/topia/templates/EntityEnumTransformer.java +++ b/topia-templates/src/main/java/org/nuiton/topia/templates/EntityEnumTransformer.java @@ -186,25 +186,25 @@ public class EntityEnumTransformer extends ObjectModelTransformerToJava { addImport(entityEnum, clazz); } - attr = (ObjectModelAttributeImpl) addAttribute(entityEnum, "contract", "Class<? extends TopiaEntity>"); + attr = (ObjectModelAttributeImpl) addAttribute(entityEnum, "contract", "Class<? extends TopiaEntity>", null, ObjectModelJavaModifier.PRIVATE, ObjectModelJavaModifier.FINAL); attr.setDocumentation("The contract of the entity."); - attr = (ObjectModelAttributeImpl) addAttribute(entityEnum, "dbSchemaName", "String"); + attr = (ObjectModelAttributeImpl) addAttribute(entityEnum, "dbSchemaName", "String", null, ObjectModelJavaModifier.PRIVATE, ObjectModelJavaModifier.FINAL); attr.setDocumentation("The optional name of database schema of the entity (if none was filled, will be {@code null})."); - attr = (ObjectModelAttributeImpl) addAttribute(entityEnum, "dbTableName", "String"); + attr = (ObjectModelAttributeImpl) addAttribute(entityEnum, "dbTableName", "String", null, ObjectModelJavaModifier.PRIVATE, ObjectModelJavaModifier.FINAL); attr.setDocumentation("The name of the database table for the entity."); - attr = (ObjectModelAttributeImpl) addAttribute(entityEnum, "implementationFQN", "String"); + attr = (ObjectModelAttributeImpl) addAttribute(entityEnum, "implementationFQN", "String", null, ObjectModelJavaModifier.PRIVATE); attr.setDocumentation("The fully qualified name of the implementation of the entity."); - attr = (ObjectModelAttributeImpl) addAttribute(entityEnum, "implementation", "Class<? extends TopiaEntity>"); + attr = (ObjectModelAttributeImpl) addAttribute(entityEnum, "implementation", "Class<? extends TopiaEntity>",null, ObjectModelJavaModifier.PRIVATE); attr.setDocumentation("The implementation class of the entity (will be lazy computed at runtime)."); - attr = (ObjectModelAttributeImpl) addAttribute(entityEnum, "naturalIds", "String[]"); + attr = (ObjectModelAttributeImpl) addAttribute(entityEnum, "naturalIds", "String[]", null, ObjectModelJavaModifier.PRIVATE, ObjectModelJavaModifier.FINAL); attr.setDocumentation("The array of property involved in the natural key of the entity."); - attr = (ObjectModelAttributeImpl) addAttribute(entityEnum, "notNulls", "String[]"); + attr = (ObjectModelAttributeImpl) addAttribute(entityEnum, "notNulls", "String[]", null, ObjectModelJavaModifier.PRIVATE, ObjectModelJavaModifier.FINAL); attr.setDocumentation("The array of not null properties of the entity."); // constructor @@ -217,6 +217,8 @@ public class EntityEnumTransformer extends ObjectModelTransformerToJava { setOperationBody(op, "" /*{ this.contract = contract; + this.dbSchemaName = dbSchemaName; + this.dbTableName = dbTableName; this.notNulls = Arrays.copyOf(notNulls, notNulls.length); this.naturalIds = naturalIds; implementationFQN = contract.getName() + "Impl"; -- To stop receiving notification emails like this one, please contact nuiton.org SCM administrator <admin+scm@nuiton.org>.