class HibernateCollectionAdapter extends BasicAdapter {

	@Override
	public Entry createEntry(Entry entry) throws Exception {
		Session session = getSessionFactory().openSession();
		Transaction tx = session.beginTransaction();
		
		Serializable entryId = null;

		try {
			Object mapping = collectMappingObject(entry, null);
			entryId = session.save(mapping);
			
			tx.commit();
						
		} catch (Exception ex) {
			tx.rollback();
			logger.error("error creating a new entry", ex);			
		} finally {
			session.close();
		}
		
		return getEntry(entryId);
	}

	public  HibernateCollectionAdapter(Abdera abdera, FeedConfiguration config);

}