diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2013-08-19 19:45:28 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2013-08-19 19:45:28 +0200 |
commit | 8cca2127e0e11486cc45ae1a8198bd778301f935 (patch) | |
tree | e81daa9d333c4797fd2f14d3170f36fdc1bcbb60 /container-compiler-plugin/src/main/java/io/trygvis/persistence/generators/DaoUtilsGenerator.java | |
parent | e78c0a1e4a4ebc71502dceccc9ae640862b7ce9e (diff) | |
download | container-playground-8cca2127e0e11486cc45ae1a8198bd778301f935.tar.gz container-playground-8cca2127e0e11486cc45ae1a8198bd778301f935.tar.bz2 container-playground-8cca2127e0e11486cc45ae1a8198bd778301f935.tar.xz container-playground-8cca2127e0e11486cc45ae1a8198bd778301f935.zip |
o Dropping the Sequences class. Moving more stuff into SqlUnit to make it easier available in a generic form.HEADmaster
o Fixing the complicated cases where the generation got confused with both setter and constructor injection.
Diffstat (limited to 'container-compiler-plugin/src/main/java/io/trygvis/persistence/generators/DaoUtilsGenerator.java')
-rw-r--r-- | container-compiler-plugin/src/main/java/io/trygvis/persistence/generators/DaoUtilsGenerator.java | 4 |
1 files changed, 2 insertions, 2 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 08a7f45..3ca191f 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 @@ -22,10 +22,10 @@ import java.util.List; import static io.trygvis.container.compiler.Utils.toGetterName; import static io.trygvis.persistence.FieldMirror.FieldType.PRIMITIVE; -import static io.trygvis.persistence.FieldMirror.GetterType; import static java.lang.reflect.Modifier.PUBLIC; import static java.lang.reflect.Modifier.STATIC; import static java.util.Collections.singletonList; +import static javax.persistence.AccessType.FIELD; import static org.apache.commons.lang.StringUtils.join; public class DaoUtilsGenerator { @@ -134,7 +134,7 @@ public class DaoUtilsGenerator { List<String> arguments = new ArrayList<>(); arguments.add(con.name); FieldMirror field = entity.getIdField(); - if (field.getterType == GetterType.FIELD) { + if (field.getterType == FIELD) { arguments.add(o.name + "." + field.javaName); } else { arguments.add(o.name + "." + toGetterName(field.javaName) + "()"); |