Kawai Wiki

Compare Revisions

Ignore whitespace Rev 228 → Rev 231

/trunk/src/main/java/org/kawai/dao/jdbc/JdbcPageDAO.java
97,13 → 97,7
p.setLanguageId(lang.getId());
p.setDeleted(false);
List<Page> pages = session.loadList(p, new String[] { "id", "name", "title", "languageId" });
if (pages == null || pages.size() != 1) {
return null;
}
return pages.get(0);
return session.loadUnique(p, "name", "title", "languageId");
}
 
/**