diff --git a/ebean-test/src/test/java/org/tests/basic/type/BSimpleWithGen.java b/ebean-test/src/test/java/org/tests/basic/type/BSimpleWithGen.java index 97d3fbb526..5bde5501c4 100644 --- a/ebean-test/src/test/java/org/tests/basic/type/BSimpleWithGen.java +++ b/ebean-test/src/test/java/org/tests/basic/type/BSimpleWithGen.java @@ -14,7 +14,7 @@ public class BSimpleWithGen { private String name; - private String desc; + private String description; @Transient private Map> someMap; @@ -47,11 +47,11 @@ public void setSomeMap(Map> someMap) { this.someMap = someMap; } - public String getDesc() { - return desc; + public String getDescription() { + return description; } - public void setDesc(String desc) { - this.desc = desc; + public void setDescription(String description) { + this.description = description; } } diff --git a/ebean-test/src/test/java/org/tests/basic/type/TestTransientMap.java b/ebean-test/src/test/java/org/tests/basic/type/TestTransientMap.java index ab54d46e8b..95548d7950 100644 --- a/ebean-test/src/test/java/org/tests/basic/type/TestTransientMap.java +++ b/ebean-test/src/test/java/org/tests/basic/type/TestTransientMap.java @@ -22,7 +22,7 @@ void testMe() { BSimpleWithGen b = new BSimpleWithGen("blah"); b.setSomeMap(map); - b.setDesc("hi"); + b.setDescription("hi"); DB.save(b); final BSimpleWithGen found = DB.find(BSimpleWithGen.class, b.getId()); @@ -30,13 +30,13 @@ void testMe() { assertThat(found.getSomeMap()).isNull(); Query query = DB.find(BSimpleWithGen.class) - .where().startsWith("desc", "h") - .orderBy().desc("desc"); + .where().startsWith("description", "h") + .orderBy().desc("description"); var list = query.findList(); assertThat(list).hasSize(1); - assertThat(query.getGeneratedSql()).contains("where t0.desc like"); - assertThat(query.getGeneratedSql()).contains("order by t0.desc desc"); + assertThat(query.getGeneratedSql()).contains("where t0.description like"); + assertThat(query.getGeneratedSql()).contains("order by t0.description desc"); DB.delete(b); }