public Object doInHibernate(Session session) throws HibernateException { try { session.load(archive, archive.getId()); } catch (ObjectNotFoundException e) { // if none found then return empty created archive } return null; } });
public Object doInHibernate(Session session) throws HibernateException { try { session.load(archive, archive.getId()); } catch (ObjectNotFoundException e) { // if none found then return empty created archive } return null; } });