Пример #1
0
 public void deleteAll(List<Site> t) {
   for (Site site : t) site.stopManaging();
   getHibernateTemplate().deleteAll(t);
 }
Пример #2
0
 /**
  * Deletes a site
  *
  * @param site the site to delete
  */
 public void delete(final Site site) {
   site.stopManaging(); // it's bogus that hibernate apparently can't do this itself
   getHibernateTemplate().delete(site);
 }