Boa noite!
Tenho um método para salvar do hibernate, nenhum erro ocorre. Funciona perfeitamente mas não salva no banco.
public void merge(T bean) throws DaoException {
try {
Transaction transaction = this.session.beginTransaction();
this.session.merge(bean);
transaction.commit();
this.session.refresh(bean);
this.session.flush();
} catch (HibernateException he) {
throw new DaoException(he);
}
}
O que tem de errado?