@Override
	public Comment getComment(int id) 
	{
		/*
		 * gets a comment we a specific ID
		 */
		Comment comment = null;
		Session session = null;
		try {
			session = factory.openSession();
			session.beginTransaction();
			comment = (Comment) session.get(Comment.class, id);
			session.getTransaction().commit();
		} 
		catch (HibernateException e)
		{
			if (session != null)
			{
				session.getTransaction().rollback();
			}
		} 
		finally
		{
			if (session != null) {
				session.close();
			}
			
		}
		return comment;
	}