.createCriteria(BookmarkData.class);
bookmarksQuery.add(Expression.eq("folder", assoc
.getFolder()));
Iterator bookmarkIter = bookmarksQuery.list().iterator();
while (bookmarkIter.hasNext()) {
BookmarkData entry = (BookmarkData) bookmarkIter.next();
bookmarks.add(entry);
}
}
}
// get bookmarks in folder
Criteria bookmarksQuery = session
.createCriteria(BookmarkData.class);
bookmarksQuery.add(Expression.eq("folder", folder));
Iterator bookmarkIter = bookmarksQuery.list().iterator();
while (bookmarkIter.hasNext()) {
BookmarkData bookmark = (BookmarkData) bookmarkIter.next();
bookmarks.add(bookmark);
}
return bookmarks;
} catch (HibernateException e) {
throw new RollerException(e);