class HibernateFolderHistoryDAO extends HibernatePersistentObjectDAO<FolderHistory> implements FolderHistoryDAO {

	@Override
	public List<FolderHistory> findByFolderId(long folderId) {
		try {
			return findByWhere("_entity.folderId =" + folderId, "order by _entity.date asc", null);
		} catch (PersistenceException e) {
			log.error(e.getMessage(), e);
			return new ArrayList<FolderHistory>();
		}
	}

	private  HibernateFolderHistoryDAO();

}