2014-04-01 43 views
0

在我的項目中,我使用hibernate 3,Spring和C3p0,並且在諮詢了postgres的pg_stat_activity之後,我強烈懷疑這個查詢是從hibernate查詢中填充EAGER列表中的一個我的實體Hibernate Eager選擇掛在「空閒事務」中

select listrulesf0_.rule_block_register_id as rule4_15_1_, listrulesf0_.id as id1_16_1_, listrulesf0_.id as id1_16_0_, listrulesf0_.display_order as display2_16_0_, listrulesf0_.id_field as id3_16_0_, listrulesf0_.rule_block_register_id as rule4_16_0_ from (...) 

此查詢在事務中掛起空閒,有效地阻止了我的程序中的每一個其他操作。

我不知道這是怎麼發生的,我怎麼修復它。

+0

不太可能,我知道,但沖洗也許這可以幫助? http://www.myeclipseide.com/index.php?name=PNphpBB2&file=viewtopic&p=64905 –

回答