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 3cf06d97fe2b0b9a8db62d8d805eb223049493e6 Author: Arnaud Thimel <thimel@codelutin.com> Date: Wed Feb 6 09:58:46 2019 +0100 fixes #664 Generated database-object statements is not valid if property schema is different from entity one by @tchemit --- .../org/nuiton/topia/templates/EntityHibernateMappingGenerator.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/topia-templates/src/main/java/org/nuiton/topia/templates/EntityHibernateMappingGenerator.java b/topia-templates/src/main/java/org/nuiton/topia/templates/EntityHibernateMappingGenerator.java index 7a447551..3d37dc6e 100644 --- a/topia-templates/src/main/java/org/nuiton/topia/templates/EntityHibernateMappingGenerator.java +++ b/topia-templates/src/main/java/org/nuiton/topia/templates/EntityHibernateMappingGenerator.java @@ -338,8 +338,8 @@ public class EntityHibernateMappingGenerator extends ObjectModelGenerator { // add database-object to create and drop index - String schema = classContext.getSchema(); - boolean withSchema = classContext.isUseSchema(); + String schema = topiaHibernateTagValues.getDbSchemaNameTagValue(attribute.getClassifier(), aPackage, model); + boolean withSchema = schema != null; String tableName; String propertyName; // On many to many relation, the index is already generated by the other table @@ -351,7 +351,7 @@ public class EntityHibernateMappingGenerator extends ObjectModelGenerator { // } else { // one to many - tableName =templateHelper.getDbName(attribute.getClassifier()); + tableName = templateHelper.getDbName(attribute.getClassifier()); propertyName = templateHelper.getReverseDbNameOnReverseAttribute(attribute.getReverseAttribute()); // } -- To stop receiving notification emails like this one, please contact nuiton.org SCM administrator <admin+scm@nuiton.org>.