class HibernateCollectionAdapter extends BasicAdapter {

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

	public  HibernateCollectionAdapter(Abdera abdera, FeedConfiguration config);

}