class CollectionDao extends HibernateDao<Collection, String> {

   public String getCollectionUUIDByName(final String collection_name)
   {
      return getHibernateTemplate().execute(session -> {
         String hql = "SELECT uuid FROM " + entityClass.getName() + " WHERE name=?";
         Query query = session.createQuery(hql);
         query.setReadOnly(true);
         query.setParameter(0, collection_name, StandardBasicTypes.STRING);
         return (String) query.uniqueResult();
      });
   }

}