branch develop updated (60c90754 -> 4aeef927)
This is an automated email from the git hooks/post-receive script. New change to branch develop in repository topia. See https://gitlab.nuiton.org/nuiton/topia.git from 60c90754 [jgitflow-maven-plugin]Updating develop poms back to pre merge state new 4aeef927 [iso] Inline hibernate typed variable in generated DAO code so user is not forced to have hibernate as a dependency 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 4aeef927812425aa26705f52766436a853d0acf0 Author: Brendan Le Ny <bleny@codelutin.com> Date: Thu Jun 7 15:37:13 2018 +0200 [iso] Inline hibernate typed variable in generated DAO code so user is not forced to have hibernate as a dependency Summary of changes: .../main/java/org/nuiton/topia/templates/EntityDaoTransformer.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) -- 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 develop in repository topia. See https://gitlab.nuiton.org/nuiton/topia.git commit 4aeef927812425aa26705f52766436a853d0acf0 Author: Brendan Le Ny <bleny@codelutin.com> Date: Thu Jun 7 15:37:13 2018 +0200 [iso] Inline hibernate typed variable in generated DAO code so user is not forced to have hibernate as a dependency --- .../main/java/org/nuiton/topia/templates/EntityDaoTransformer.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/topia-templates/src/main/java/org/nuiton/topia/templates/EntityDaoTransformer.java b/topia-templates/src/main/java/org/nuiton/topia/templates/EntityDaoTransformer.java index 4865a713..d782e9bf 100644 --- a/topia-templates/src/main/java/org/nuiton/topia/templates/EntityDaoTransformer.java +++ b/topia-templates/src/main/java/org/nuiton/topia/templates/EntityDaoTransformer.java @@ -34,7 +34,6 @@ import com.google.common.collect.Sets; import org.apache.commons.lang3.StringUtils; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; -import org.hibernate.Session; import org.nuiton.eugene.GeneratorUtil; import org.nuiton.eugene.java.ObjectModelTransformerToJava; import org.nuiton.eugene.models.object.ObjectModel; @@ -476,11 +475,9 @@ public class EntityDaoTransformer extends ObjectModelTransformerToJava { hibernateSupportGenerated = true; addImport(result, TopiaHibernateSupport.class); addImport(result, HibernateTopiaJpaSupport.class); - addImport(result, Session.class); body.append("" /*{ TopiaHibernateSupport hibernateSupport = ((HibernateTopiaJpaSupport) topiaJpaSupport).getHibernateSupport(); - Session hibernateSession = hibernateSupport.getHibernateSession(); }*/ ); } @@ -493,7 +490,7 @@ public class EntityDaoTransformer extends ObjectModelTransformerToJava { " FROM <%=attrClassifierDBName%> main, <%=attrJoinTableName%> secondary " + " WHERE main.topiaId=secondary.<%=attrDBName%> " + " AND secondary.<%=attrReverseDBName%>='" + entity.getTopiaId() + "'"; - List<<%=attrType%>> list = hibernateSession + List<<%=attrType%>> list = hibernateSupport.getHibernateSession() .createNativeQuery(sql) .addEntity("main", <%=entityEnumName%>.<%=attrType%>.getImplementation()) .list(); -- To stop receiving notification emails like this one, please contact nuiton.org SCM administrator <admin+scm@nuiton.org>.
participants (1)
-
nuiton.org scm