branch feature/3743 created (now 62fa751)
This is an automated email from the git hooks/post-receive script. New change to branch feature/3743 in repository topia. See http://git.nuiton.org/topia.git at 62fa751 Fix BinderHelper generation (all direct attributes must also be used) (fixes #3743) This branch includes the following new commits: new 62fa751 Fix BinderHelper generation (all direct attributes must also be used) (fixes #3743) The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Detailed log of new commits: commit 62fa751bda25dbd8f3a490cd5ed0cd436a285ce4 Author: Tony CHEMIT <chemit@codelutin.com> Date: Thu Aug 13 11:33:53 2015 +0200 Fix BinderHelper generation (all direct attributes must also be used) (fixes #3743) -- To stop receiving notification emails like this one, please contact nuiton.org SCM administrator <admin+scm@nuiton.org>.
This is an automated email from the git hooks/post-receive script. New commit to branch feature/3743 in repository topia. See http://git.nuiton.org/topia.git commit 62fa751bda25dbd8f3a490cd5ed0cd436a285ce4 Author: Tony CHEMIT <chemit@codelutin.com> Date: Thu Aug 13 11:33:53 2015 +0200 Fix BinderHelper generation (all direct attributes must also be used) (fixes #3743) --- .../java/org/nuiton/topia/templates/BinderHelperTransformer.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/topia-templates/src/main/java/org/nuiton/topia/templates/BinderHelperTransformer.java b/topia-templates/src/main/java/org/nuiton/topia/templates/BinderHelperTransformer.java index 0a6944a..57c75db 100644 --- a/topia-templates/src/main/java/org/nuiton/topia/templates/BinderHelperTransformer.java +++ b/topia-templates/src/main/java/org/nuiton/topia/templates/BinderHelperTransformer.java @@ -38,6 +38,8 @@ import org.nuiton.util.beans.BinderModelBuilder; import org.nuiton.util.beans.BinderFactory; import java.util.ArrayList; +import java.util.Collection; +import java.util.HashSet; import java.util.Iterator; import java.util.List; @@ -225,7 +227,12 @@ public class BinderHelperTransformer extends ObjectModelTransformerToJava { StringBuilder initCode) { List<ObjectModelAttribute> list = new ArrayList<ObjectModelAttribute>(); - for (ObjectModelAttribute attr : clazz.getAttributes()) { + + Collection<ObjectModelAttribute> attributes = new HashSet<ObjectModelAttribute>(); + attributes.addAll(clazz.getAllOtherAttributes()); + attributes.addAll(clazz.getAttributes()); + + for (ObjectModelAttribute attr : attributes) { if (!attr.isNavigable()) { continue; } -- To stop receiving notification emails like this one, please contact nuiton.org SCM administrator <admin+scm@nuiton.org>.
participants (1)
-
nuiton.org scm