Hi , Thanks .
My problem the delete works in the database but the object still exists in hibernate. Here is the code:
String req=”delete from TempFacture where userId=:userId”;
Session session = HibernateSessionFactory.currentSession();
Transaction tx = session.beginTransaction();
int deletedEntities =session.createQuery( req ).setInteger(“userId”, id.intValue() ).executeUpdate();
tx.commit();
session.close();
tanks again