Hibernate generate the next sentences:
Hibernate: select statustran0_.ID_TRANS_F as ID_TRANS_F, statustran0_.ID_TERMINAL as ID_TERMI2_, sta
tustran0_.ID_TERMINAL_GW as ID_TERMI3_, statustran0_.ID_COMERCIO_GW as ID_COMER4_, statustran0_.ID_A
UTOR as ID_AUTOR, statustran0_.ID_MANAGER as ID_MANAGER, statustran0_.INVOICE_NUMBER as INVOICE_7_,
statustran0_.FECHA as FECHA, statustran0_.FECHA_MANAGER as FECHA_MA9_, statustran0_.CODIGO_RETORNO a
s CODIGO_10_, statustran0_.MENSAJE_RETORNO as MENSAJE11_, statustran0_.ESTADO as ESTADO, statustran0
_.TIPO_TRANSACCION as TIPO_TR13_, statustran0_.MTI as MTI, statustran0_.PC as PC from PM_TRANS_F sta
tustran0_ where (statustran0_.ID_TERMINAL=? )and(statustran0_.INVOICE_NUMBER=? )
Hibernate: select detalles0_.ID_TRANS_F as ID_TRANS_F__, detalles0_.ID_TRANS_DET_F as ID_TRANS1___,
detalles0_.ID_TRANS_DET_F as ID_TRANS1_0_, detalles0_.CAMPO as CAMPO0_, detalles0_.VALOR as VALOR0_,
detalles0_.ID_TRANS_F as ID_TRANS_F0_ from PM_TRANS_DET_F detalles0_ where detalles0_.ID_TRANS_F=?
>>>>>>>>>>>> To getDetails
>>>>>>>>>>>> To delete
>>>>>>>>>>>> To flush
Hibernate: update PM_TRANS_F set ID_TERMINAL=?, ID_TERMINAL_GW=?, ID_COMERCIO_GW=?, ID_AUTOR=?, ID_M
ANAGER=?, INVOICE_NUMBER=?, FECHA=?, FECHA_MANAGER=?, CODIGO_RETORNO=?, MENSAJE_RETORNO=?, ESTADO=?,
TIPO_TRANSACCION=?, MTI=?, PC=? where ID_TRANS_F=?
Hibernate: delete from PM_TRANS_DET_F where ID_TRANS_DET_F=?
Borrado cardhname=123
>>>>>>>>>>>> To delete
>>>>>>>>>>>> To flush
Hibernate: delete from PM_TRANS_DET_F where ID_TRANS_DET_F=?
Borrado 37=113096765
>>>>>>>>>>>> To delete
>>>>>>>>>>>> To flush
Hibernate: delete from PM_TRANS_DET_F where ID_TRANS_DET_F=?
Borrado pin=123
Hibernate: update PM_TRANS_F set ID_TERMINAL=?, ID_TERMINAL_GW=?, ID_COMERCIO_GW=?, ID_AUTOR=?, ID_M
ANAGER=?, INVOICE_NUMBER=?, FECHA=?, FECHA_MANAGER=?, CODIGO_RETORNO=?, MENSAJE_RETORNO=?, ESTADO=?,
TIPO_TRANSACCION=?, MTI=?, PC=? where ID_TRANS_F=?
Why Hibernate generate UPDATE sentences before to delete childrens and after to delete childrens ?
When try to execute the (extrange) UPDATE ... BANG !!!! DEAD LOCK !!!!
WHY ????? :'(
The deadlock is randomic. :(
Thanks a lot.
Att.
Diego Cueva.
_________________ I just know, that I do nothing not know.
|