We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e42c1ba + 4e7539d commit 1eb67d4Copy full SHA for 1eb67d4
easydao-maven-plugin/src/main/resources/hu/vanio/easydao/templates/dao.ftl
@@ -81,7 +81,7 @@ public class ${t.javaName}${e.daoSuffix}Impl implements ${t.javaName}${e.daoSuff
81
82
@Override
83
public List<${t.javaName}> readAll(<#if t.hasBlobField || t.hasClobField>boolean readLobFields</#if>) {
84
- String query = "select " + SELECTED_FIELDS + " from ${t.dbName}";
+ String query = "select " + SELECTED_FIELDS + " from ${t.dbName}<#if t.hasPkField && !t.compositePk> order by ${t.pkField.dbName}</#if>";
85
List<${t.javaName}> retVal = this.jdbcTemplate.query(query, new ${t.javaName}RowMapper(<#if t.hasBlobField || t.hasClobField>readLobFields</#if>));
86
return retVal;
87
}
0 commit comments