public Journal getByName(String name) {
        Criteria criteria = sessionFactory.getCurrentSession().createCriteria(Journal.class);
        criteria.add(Restrictions.eq("name", name));

        return (Journal) criteria.uniqueResult();
    }