Kawai Wiki

Compare Revisions

Ignore whitespace Rev 78 → Rev 79

/trunk/src/main/java/org/kawai/dao/PageDAO.java
42,4 → 42,6
public Revision loadRevision(int revision, String name, Language lang);
public void insertRevision(Revision r);
public List<Revision> loadRevisions(String name, Language lang);
}
/trunk/src/main/java/org/kawai/dao/jdbc/JdbcPageDAO.java
340,4 → 340,14
close(stmt, rset);
}
}
@Override
public List<Revision> loadRevisions(String name, Language lang) {
Revision r = new Revision();
r.setName(name);
r.setLanguageId(lang.getId());
return session.loadList(r, "revision desc");
}
}