class HibernateCollectionAdapter extends BasicAdapter {

	@Override
	public boolean deleteEntry(Object entryId) throws Exception {
		Session session = getSessionFactory().openSession();
		Transaction tx = session.beginTransaction();
		
		boolean deleted = false;
		try {
			Object mapping = session.load(
					Class.forName((String) config.getProperty(ENTRY_MAPPING_CLASS_NAME)),
					(Serializable) entryId); 
			
			if (mapping != null) {
				session.delete(mapping);
				tx.commit();
			}
			deleted = true;
		} catch (HibernateException ex) {
			tx.rollback();
			logger.error("error deleting the entry", ex);			
		} finally {
			session.close();
		}
				
		return deleted;
	}

	public  HibernateCollectionAdapter(Abdera abdera, FeedConfiguration config);

}