summaryrefslogtreecommitdiff
path: root/container-compiler-plugin/src/main/java/io/trygvis
diff options
context:
space:
mode:
Diffstat (limited to 'container-compiler-plugin/src/main/java/io/trygvis')
-rw-r--r--container-compiler-plugin/src/main/java/io/trygvis/persistence/generators/DaoUtilsGenerator.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/container-compiler-plugin/src/main/java/io/trygvis/persistence/generators/DaoUtilsGenerator.java b/container-compiler-plugin/src/main/java/io/trygvis/persistence/generators/DaoUtilsGenerator.java
index 51b3879..e4f69b5 100644
--- a/container-compiler-plugin/src/main/java/io/trygvis/persistence/generators/DaoUtilsGenerator.java
+++ b/container-compiler-plugin/src/main/java/io/trygvis/persistence/generators/DaoUtilsGenerator.java
@@ -87,9 +87,9 @@ public class DaoUtilsGenerator {
EntityMirror referenced = unit.get(field.type);
FieldMirror idField = referenced.getIdField();
typeHandler = generatorConfiguration.typeHandler(idField.type);
- accessor = field.referenceAccessor(o, idField);
- setter = " stmt." + typeHandler.setter(i, accessor) + ";";
- accessor = "null";
+ accessor = o.name + "." + field.javaName;
+ String idAccessor = field.referenceAccessor(o, idField);
+ setter = " stmt." + typeHandler.setter(i, idAccessor) + ";";
}
if (field.notNull) {