when i execute this method
@SuppressWarnings("deprecation")
public void importFluxEquipement() throws HibernateException, SQLException
{
Session s = HibernateUtil.getCurrentSession();
CallableStatement cs = s.connection().prepareCall("{call PK_COMPAS_FLUX_ISU.IMPORT_EQUIPEMENT_EAI()}");
cs.execute();
log.info("- Intégration du flux ISU Equipement");
}
i have this error
ERROR – org.hibernate.HibernateException: connection is not valid
without active transaction
Thx.
You need to call
Transaction.beginTransaction()method.