Incluir rollback en excepción
This commit is contained in:
parent
ec673174d9
commit
91aff80cec
@ -65,6 +65,7 @@ public class ContinenteDaoHibernate implements IOperacionesDAOEntidad<Continente
|
||||
|
||||
transaccion.commit();
|
||||
} catch (HibernateException e) {
|
||||
transaccion.rollback();
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
@ -82,6 +83,7 @@ public class ContinenteDaoHibernate implements IOperacionesDAOEntidad<Continente
|
||||
|
||||
transaccion.commit();
|
||||
} catch (Exception e) {
|
||||
transaccion.rollback();
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
@ -65,6 +65,7 @@ public class PeliculaDaoHibernate implements IOperacionesDAOEntidad<Pelicula, In
|
||||
|
||||
transaccion.commit();
|
||||
} catch (HibernateException e) {
|
||||
transaccion.rollback();
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
@ -82,6 +83,7 @@ public class PeliculaDaoHibernate implements IOperacionesDAOEntidad<Pelicula, In
|
||||
|
||||
transaccion.commit();
|
||||
} catch (Exception e) {
|
||||
transaccion.rollback();
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
@ -106,6 +108,7 @@ public class PeliculaDaoHibernate implements IOperacionesDAOEntidad<Pelicula, In
|
||||
|
||||
transaccion.commit();
|
||||
} catch (HibernateException e) {
|
||||
transaccion.rollback();
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user