@Override
 public int deleteAllWithoutCascade(Class<?> clazz) {
   return getSession().createQuery("delete from " + clazz.getName()).executeUpdate();
 }
 @Override
 public boolean exists(Class<?> clazz) {
   return findFirstByHql(clazz, "from " + clazz.getName()) != null;
 }