@Override
	public Object save(T object) {
		Session session = HibernateUtil.getSession();
		Object id = null;
		try {
			session.beginTransaction();
			id = session.save(object);
			session.getTransaction().commit();
		} catch (HibernateException e) {
			session.getTransaction().rollback();
			error = e;
		} finally {
			HibernateUtil.closeSession();
		}
		return id;
	}