2122232425262728293031
} else { Directory root = new Directory(); root.setName(""); session.save(root); session.flush(); session.refresh(root); return root; } } public Directory getDirectory(Session session, int directoryId) throws HibernateException {