I synchronize on a lock object whenever I do some hibernate action (mItemLock, see code above). Below is the complete hibernate debug output for the saving of two issues. The #585 fails, #584 is successful.
The hibernate application is a server that accepts requests from clients to associate issues with certain items. The items are stored as a tree. I open and close a new session for every incoming request.
The complete debug output for the failed saving of issue #585 is this:
Code:
2669:12:09:37,722 DEBUG SessionImpl:789 - generated identifier: 585
2670:12:09:37,724 DEBUG BatcherImpl:115 - reusing prepared statement
2671:12:09:37,726 DEBUG SessionImpl:836 - saving [de.biotronik.timetracker.ws.WorkIssue#585]
2672:12:09:37,729 DEBUG SQL:230 - update timetracker.WORK_ISSUE set WORK_ITEM_ID=?, ISSUE_IDX=? where ID=?
2673:12:09:37,731 DEBUG Cascades:506 - done processing cascades for: de.biotronik.timetracker.ws.WorkItem
2674:12:09:37,735 DEBUG BatcherImpl:115 - reusing prepared statement
2675:12:09:37,736 DEBUG JDBCTransaction:59 - commit
2676:12:09:37,738 DEBUG SQL:230 - update timetracker.WORK_ISSUE set WORK_ITEM_ID=?, ISSUE_IDX=? where ID=?
2677:12:09:37,745 DEBUG SessionImpl:2267 - flushing session
2678:12:09:37,749 DEBUG Cascades:497 - processing cascades for: de.biotronik.timetracker.ws.WorkItem
2679:12:09:37,750 DEBUG BatcherImpl:115 - reusing prepared statement
2680:12:09:37,752 DEBUG Cascades:524 - cascading to collection: de.biotronik.timetracker.ws.WorkItem.children
2681:12:09:37,754 DEBUG SQL:230 - update timetracker.WORK_ISSUE set WORK_ITEM_ID=?, ISSUE_IDX=? where ID=?
2682:12:09:37,758 DEBUG Cascades:524 - cascading to collection: de.biotronik.timetracker.ws.WorkItem.workIssues
2683:12:09:37,762 DEBUG BatcherImpl:115 - reusing prepared statement
2684:12:09:37,763 DEBUG Cascades:113 - cascading to saveOrUpdate()
2685:12:09:37,765 DEBUG SQL:230 - update timetracker.WORK_ISSUE set WORK_ITEM_ID=?, ISSUE_IDX=? where ID=?
2686:12:09:37,768 DEBUG SessionImpl:1382 - saveOrUpdate() persistent instance
2687:12:09:37,773 DEBUG Cascades:113 - cascading to saveOrUpdate()
2688:12:09:37,774 DEBUG BatcherImpl:115 - reusing prepared statement
2689:12:09:37,776 DEBUG SessionImpl:1382 - saveOrUpdate() persistent instance
2690:12:09:37,778 DEBUG SQL:230 - update timetracker.WORK_ISSUE set WORK_ITEM_ID=?, ISSUE_IDX=? where ID=?
2691:12:09:37,781 DEBUG Cascades:113 - cascading to saveOrUpdate()
2692:12:09:37,785 DEBUG BasicCollectionPersister:532 - done inserting collection: 5 rows inserted
2693:12:09:37,786 DEBUG SessionImpl:1382 - saveOrUpdate() persistent instance
2694:12:09:37,789 DEBUG BasicCollectionPersister:510 - Inserting collection: [de.biotronik.timetracker.ws.WorkItem.children#1]
2695:12:09:37,791 DEBUG Cascades:113 - cascading to saveOrUpdate()
2696:12:09:37,793 DEBUG BatcherImpl:211 - done closing: -2 open PreparedStatements, 0 open ResultSets
2697:12:09:37,796 DEBUG SessionImpl:1382 - saveOrUpdate() persistent instance
2698:12:09:37,798 DEBUG BatcherImpl:275 - closing statement
2699:12:09:37,801 DEBUG Cascades:113 - cascading to saveOrUpdate()
2700:12:09:37,804 DEBUG BatcherImpl:204 - about to open: -2 open PreparedStatements, 0 open ResultSets
2701:12:09:37,806 DEBUG SessionImpl:1382 - saveOrUpdate() persistent instance
2702:12:09:37,808 DEBUG SQL:230 - update timetracker.WORK_ITEM set PARENT_ID=?, CHILD_IDX=? where ID=?
2703:12:09:37,811 DEBUG Cascades:113 - cascading to saveOrUpdate()
2704:12:09:37,813 DEBUG BatcherImpl:253 - preparing statement
2705:12:09:37,820 DEBUG SessionImpl:1382 - saveOrUpdate() persistent instance
2706:12:09:37,825 DEBUG BatcherImpl:115 - reusing prepared statement
2707:12:09:37,825 DEBUG Cascades:113 - cascading to saveOrUpdate()
2708:12:09:37,828 DEBUG SQL:230 - update timetracker.WORK_ITEM set PARENT_ID=?, CHILD_IDX=? where ID=?
2709:12:09:37,830 DEBUG SessionImpl:1382 - saveOrUpdate() persistent instance
2710:12:09:37,834 DEBUG BatcherImpl:115 - reusing prepared statement
2711:12:09:37,835 DEBUG Cascades:113 - cascading to saveOrUpdate()
2712:12:09:37,837 DEBUG SQL:230 - update timetracker.WORK_ITEM set PARENT_ID=?, CHILD_IDX=? where ID=?
2713:12:09:37,840 DEBUG SessionImpl:1382 - saveOrUpdate() persistent instance
2714:12:09:37,844 DEBUG BatcherImpl:115 - reusing prepared statement
2715:12:09:37,845 DEBUG Cascades:113 - cascading to saveOrUpdate()
2716:12:09:37,847 DEBUG SQL:230 - update timetracker.WORK_ITEM set PARENT_ID=?, CHILD_IDX=? where ID=?
2717:12:09:37,849 DEBUG SessionImpl:1382 - saveOrUpdate() persistent instance
2718:12:09:37,853 DEBUG BatcherImpl:115 - reusing prepared statement
2719:12:09:37,854 DEBUG Cascades:113 - cascading to saveOrUpdate()
2720:12:09:37,856 DEBUG SQL:230 - update timetracker.WORK_ITEM set PARENT_ID=?, CHILD_IDX=? where ID=?
2721:12:09:37,859 DEBUG SessionImpl:1382 - saveOrUpdate() persistent instance
2722:12:09:37,863 DEBUG BatcherImpl:115 - reusing prepared statement
2723:12:09:37,864 DEBUG Cascades:113 - cascading to saveOrUpdate()
2724:12:09:37,866 DEBUG SQL:230 - update timetracker.WORK_ITEM set PARENT_ID=?, CHILD_IDX=? where ID=?
2725:12:09:37,869 DEBUG SessionImpl:1382 - saveOrUpdate() persistent instance
2726:12:09:37,873 DEBUG BatcherImpl:115 - reusing prepared statement
2727:12:09:37,874 DEBUG Cascades:113 - cascading to saveOrUpdate()
2728:12:09:37,876 DEBUG SQL:230 - update timetracker.WORK_ITEM set PARENT_ID=?, CHILD_IDX=? where ID=?
2729:12:09:37,879 DEBUG SessionImpl:1382 - saveOrUpdate() persistent instance
2730:12:09:37,882 DEBUG BatcherImpl:115 - reusing prepared statement
2731:12:09:37,884 DEBUG Cascades:113 - cascading to saveOrUpdate()
2732:12:09:37,891 DEBUG SQL:230 - update timetracker.WORK_ITEM set PARENT_ID=?, CHILD_IDX=? where ID=?
2733:12:09:37,893 DEBUG SessionImpl:1382 - saveOrUpdate() persistent instance
2734:12:09:37,897 DEBUG BatcherImpl:115 - reusing prepared statement
2735:12:09:37,898 DEBUG Cascades:113 - cascading to saveOrUpdate()
2736:12:09:37,903 DEBUG SQL:230 - update timetracker.WORK_ITEM set PARENT_ID=?, CHILD_IDX=? where ID=?
2737:12:09:37,903 DEBUG SessionImpl:1382 - saveOrUpdate() persistent instance
2738:12:09:37,908 DEBUG BatcherImpl:115 - reusing prepared statement
2739:12:09:37,909 DEBUG Cascades:113 - cascading to saveOrUpdate()
2740:12:09:37,912 DEBUG SQL:230 - update timetracker.WORK_ITEM set PARENT_ID=?, CHILD_IDX=? where ID=?
2741:12:09:37,914 DEBUG SessionImpl:1382 - saveOrUpdate() persistent instance
2742:12:09:37,919 DEBUG Cascades:113 - cascading to saveOrUpdate()
2743:12:09:37,920 DEBUG BatcherImpl:115 - reusing prepared statement
2744:12:09:37,921 DEBUG SessionImpl:1382 - saveOrUpdate() persistent instance
2745:12:09:37,926 DEBUG SQL:230 - update timetracker.WORK_ITEM set PARENT_ID=?, CHILD_IDX=? where ID=?
2746:12:09:37,927 DEBUG Cascades:113 - cascading to saveOrUpdate()
2747:12:09:37,931 DEBUG BatcherImpl:115 - reusing prepared statement
2748:12:09:37,932 DEBUG SessionImpl:1382 - saveOrUpdate() persistent instance
2749:12:09:37,935 DEBUG SQL:230 - update timetracker.WORK_ITEM set PARENT_ID=?, CHILD_IDX=? where ID=?
2750:12:09:37,937 DEBUG Cascades:113 - cascading to saveOrUpdate()
2751:12:09:37,942 DEBUG SessionImpl:1382 - saveOrUpdate() persistent instance
2752:12:09:37,942 DEBUG BasicCollectionPersister:532 - done inserting collection: 12 rows inserted
2753:12:09:37,944 DEBUG Cascades:506 - done processing cascades for: de.biotronik.timetracker.ws.WorkItem
2754:12:09:37,946 DEBUG BasicCollectionPersister:510 - Inserting collection: [de.biotronik.timetracker.ws.WorkItem.workIssues#1]
2755:12:09:37,949 DEBUG SessionImpl:2467 - Flushing entities and processing referenced collections
2756:12:09:37,954 DEBUG BatcherImpl:211 - done closing: -2 open PreparedStatements, 0 open ResultSets
2757:12:09:37,954 DEBUG SessionImpl:2561 - Updating entity: [de.biotronik.timetracker.ws.WorkItem#92]
2758:12:09:37,957 DEBUG BatcherImpl:275 - closing statement
2759:12:09:37,964 DEBUG SessionImpl:2916 - Collection found: [de.biotronik.timetracker.ws.WorkItem.children#92], was: [<unreferenced>]
2760:12:09:37,967 DEBUG BatcherImpl:204 - about to open: -2 open PreparedStatements, 0 open ResultSets
2761:12:09:37,969 DEBUG SessionImpl:2916 - Collection found: [de.biotronik.timetracker.ws.WorkItem.workIssues#92], was: [<unreferenced>]
2762:12:09:37,972 DEBUG SQL:230 - update timetracker.WORK_ISSUE set WORK_ITEM_ID=?, ISSUE_IDX=? where ID=?
2763:12:09:37,974 DEBUG SessionImpl:2561 - Updating entity: [de.biotronik.timetracker.ws.WorkIssue#416]
2764:12:09:37,977 DEBUG BatcherImpl:253 - preparing statement
2765:12:09:37,980 DEBUG SessionImpl:2561 - Updating entity: [de.biotronik.timetracker.ws.WorkIssue#418]
2766:12:09:37,985 DEBUG SessionImpl:2561 - Updating entity: [de.biotronik.timetracker.ws.WorkIssue#427]
2767:12:09:37,985 DEBUG BasicCollectionPersister:532 - done inserting collection: 1 rows inserted
2768:12:09:37,987 DEBUG SessionImpl:2561 - Updating entity: [de.biotronik.timetracker.ws.WorkIssue#436]
2769:12:09:37,990 DEBUG BasicCollectionPersister:510 - Inserting collection: [de.biotronik.timetracker.ws.WorkItem.children#2]
2770:12:09:37,992 DEBUG SessionImpl:2561 - Updating entity: [de.biotronik.timetracker.ws.WorkIssue#452]
2771:12:09:37,995 DEBUG BatcherImpl:211 - done closing: -2 open PreparedStatements, 0 open ResultSets
2772:12:09:37,998 DEBUG SessionImpl:2561 - Updating entity: [de.biotronik.timetracker.ws.WorkIssue#512]
2773:12:09:38,001 DEBUG BatcherImpl:275 - closing statement
2774:12:09:38,003 DEBUG SessionImpl:2561 - Updating entity: [de.biotronik.timetracker.ws.WorkIssue#516]
2775:12:09:38,007 DEBUG BatcherImpl:204 - about to open: -2 open PreparedStatements, 0 open ResultSets
2776:12:09:38,009 DEBUG SessionImpl:2561 - Updating entity: [de.biotronik.timetracker.ws.WorkIssue#521]
2777:12:09:38,012 DEBUG SQL:230 - update timetracker.WORK_ITEM set PARENT_ID=?, CHILD_IDX=? where ID=?
2778:12:09:38,014 DEBUG SessionImpl:2561 - Updating entity: [de.biotronik.timetracker.ws.WorkIssue#527]
2779:12:09:38,017 DEBUG BatcherImpl:253 - preparing statement
2780:12:09:38,019 DEBUG SessionImpl:2561 - Updating entity: [de.biotronik.timetracker.ws.WorkIssue#529]
2781:12:09:38,025 DEBUG SessionImpl:2561 - Updating entity: [de.biotronik.timetracker.ws.WorkIssue#530]
2782:12:09:38,027 DEBUG SessionImpl:2561 - Updating entity: [de.biotronik.timetracker.ws.WorkIssue#568]
2783:12:09:38,027 DEBUG BatcherImpl:115 - reusing prepared statement
2784:12:09:38,029 DEBUG SessionImpl:2561 - Updating entity: [de.biotronik.timetracker.ws.WorkIssue#570]
2785:12:09:38,032 DEBUG SQL:230 - update timetracker.WORK_ITEM set PARENT_ID=?, CHILD_IDX=? where ID=?
2786:12:09:38,039 DEBUG SessionImpl:2561 - Updating entity: [de.biotronik.timetracker.ws.WorkIssue#572]
2787:12:09:38,044 DEBUG BatcherImpl:115 - reusing prepared statement
2788:12:09:38,045 DEBUG SessionImpl:2561 - Updating entity: [de.biotronik.timetracker.ws.WorkIssue#574]
2789:12:09:38,048 DEBUG SQL:230 - update timetracker.WORK_ITEM set PARENT_ID=?, CHILD_IDX=? where ID=?
2790:12:09:38,049 DEBUG SessionImpl:2561 - Updating entity: [de.biotronik.timetracker.ws.WorkIssue#577]
2791:12:09:38,054 DEBUG BatcherImpl:115 - reusing prepared statement
2792:12:09:38,054 DEBUG SessionImpl:2561 - Updating entity: [de.biotronik.timetracker.ws.WorkIssue#580]
2793:12:09:38,059 DEBUG SQL:230 - update timetracker.WORK_ITEM set PARENT_ID=?, CHILD_IDX=? where ID=?
2794:12:09:38,059 DEBUG SessionImpl:2808 - Processing unreferenced collections
2795:12:09:38,063 DEBUG BatcherImpl:115 - reusing prepared statement
2796:12:09:38,064 DEBUG SessionImpl:2822 - Scheduling collection removes/(re)creates/updates
2797:12:09:38,067 DEBUG SQL:230 - update timetracker.WORK_ITEM set PARENT_ID=?, CHILD_IDX=? where ID=?
2798:12:09:38,069 DEBUG SessionImpl:2291 - Flushed: 1 insertions, 18 updates, 0 deletions to 19 objects
2799:12:09:38,074 DEBUG BatcherImpl:115 - reusing prepared statement
2800:12:09:38,074 DEBUG SessionImpl:2296 - Flushed: 2 (re)creations, 0 updates, 2 removals to 2 collections
2801:12:09:38,077 DEBUG SQL:230 - update timetracker.WORK_ITEM set PARENT_ID=?, CHILD_IDX=? where ID=?
2802:12:09:38,080 DEBUG Printer:75 - listing entities:
2803:12:09:38,085 DEBUG BasicCollectionPersister:532 - done inserting collection: 6 rows inserted
2804:12:09:38,089 DEBUG BasicCollectionPersister:510 - Inserting collection: [de.biotronik.timetracker.ws.WorkItem.workIssues#2]
2805:12:09:38,089 DEBUG Printer:82 - de.biotronik.timetracker.ws.WorkIssue{startDate=2005-04-13 09:40:00, endDate=2005-04-13 09:43:14, workItem=WorkItem#92, id=568}
2806:12:09:38,092 DEBUG BatcherImpl:211 - done closing: -2 open PreparedStatements, 0 open ResultSets
2807:12:09:38,094 DEBUG Printer:82 - de.biotronik.timetracker.ws.WorkIssue{startDate=2005-04-13 12:09:37, endDate=2005-04-13 13:09:37, workItem=WorkItem#92, id=585}
2808:12:09:38,097 DEBUG BatcherImpl:275 - closing statement
2809:12:09:38,099 DEBUG Printer:82 - de.biotronik.timetracker.ws.WorkIssue{startDate=2005-04-11 17:43:58, endDate=2005-04-11 17:53:55, workItem=WorkItem#92, id=529}
2810:12:09:38,103 DEBUG BatcherImpl:204 - about to open: -2 open PreparedStatements, 0 open ResultSets
2811:12:09:38,105 DEBUG Printer:82 - de.biotronik.timetracker.ws.WorkIssue{startDate=2005-04-11 10:31:32, endDate=2005-04-11 11:31:32, workItem=WorkItem#92, id=512}
2812:12:09:38,108 DEBUG SQL:230 - update timetracker.WORK_ISSUE set WORK_ITEM_ID=?, ISSUE_IDX=? where ID=?
2813:12:09:38,116 DEBUG Printer:82 - de.biotronik.timetracker.ws.WorkIssue{startDate=2005-04-11 12:54:37, endDate=2005-04-11 13:54:37, workItem=WorkItem#92, id=521}
2814:12:09:38,119 DEBUG BatcherImpl:253 - preparing statement
2815:12:09:38,122 DEBUG Printer:82 - de.biotronik.timetracker.ws.WorkIssue{startDate=2005-04-07 12:04:57, endDate=2005-04-07 12:46:11, workItem=WorkItem#92, id=427}
2816:12:09:38,127 DEBUG Printer:82 - de.biotronik.timetracker.ws.WorkIssue{startDate=2005-04-07 10:15:01, endDate=2005-04-07 11:07:46, workItem=WorkItem#92, id=418}
2817:12:09:38,127 DEBUG BatcherImpl:115 - reusing prepared statement
2818:12:09:38,130 DEBUG Printer:82 - de.biotronik.timetracker.ws.WorkIssue{startDate=2005-04-11 15:24:30, endDate=2005-04-11 15:24:49, workItem=WorkItem#92, id=527}
2819:12:09:38,134 DEBUG SQL:230 - update timetracker.WORK_ISSUE set WORK_ITEM_ID=?, ISSUE_IDX=? where ID=?
2820:12:09:38,136 DEBUG Printer:82 - de.biotronik.timetracker.ws.WorkIssue{startDate=2005-04-13 09:43:58, endDate=2005-04-13 09:44:09, workItem=WorkItem#92, id=570}
2821:12:09:38,139 DEBUG BatcherImpl:115 - reusing prepared statement
2822:12:09:38,141 DEBUG Printer:82 - de.biotronik.timetracker.ws.WorkItem{referenceTime=0, bookable=true, deletable=true, workIssues=[WorkIssue#416, WorkIssue#418, WorkIssue#427, WorkIssue#436, WorkIssue#452, WorkIssue#512, WorkIssue#516, WorkIssue#521, WorkIssue#527, WorkIssue#529, WorkIssue#530, WorkIssue#568, WorkIssue#570, WorkIssue#572, WorkIssue#574, WorkIssue#577, WorkIssue#580, WorkIssue#585], name=BugFixes, children=[], parent=WorkItem#7, id=92}
2823:12:09:38,143 DEBUG SQL:230 - update timetracker.WORK_ISSUE set WORK_ITEM_ID=?, ISSUE_IDX=? where ID=?
2824:12:09:38,146 DEBUG Printer:82 - de.biotronik.timetracker.ws.WorkIssue{startDate=2005-04-11 11:32:00, endDate=2005-04-11 12:32:00, workItem=WorkItem#92, id=516}
2825:12:09:38,150 DEBUG BatcherImpl:115 - reusing prepared statement
2826:12:09:38,151 DEBUG Printer:82 - de.biotronik.timetracker.ws.WorkIssue{startDate=2005-04-13 09:44:21, endDate=2005-04-13 09:45:09, workItem=WorkItem#92, id=572}
2827:12:09:38,154 DEBUG SQL:230 - update timetracker.WORK_ISSUE set WORK_ITEM_ID=?, ISSUE_IDX=? where ID=?
2828:12:09:38,157 DEBUG Printer:82 - de.biotronik.timetracker.ws.WorkIssue{startDate=2005-04-07 08:14:00, endDate=2005-04-07 10:14:42, workItem=WorkItem#92, id=416}
2829:12:09:38,161 DEBUG BatcherImpl:115 - reusing prepared statement
2830:12:09:38,162 DEBUG Printer:82 - de.biotronik.timetracker.ws.WorkIssue{startDate=2005-04-13 11:33:43, endDate=2005-04-13 11:36:12, workItem=WorkItem#92, id=580}
2831:12:09:38,164 DEBUG SQL:230 - update timetracker.WORK_ISSUE set WORK_ITEM_ID=?, ISSUE_IDX=? where ID=?
2832:12:09:38,167 DEBUG Printer:82 - de.biotronik.timetracker.ws.WorkIssue{startDate=2005-04-07 16:16:12, endDate=2005-04-07 16:25:07, workItem=WorkItem#92, id=452}
2833:12:09:38,172 DEBUG BatcherImpl:115 - reusing prepared statement
2834:12:09:38,172 DEBUG Printer:82 - de.biotronik.timetracker.ws.WorkIssue{startDate=2005-04-11 17:55:07, endDate=2005-04-11 18:55:07, workItem=WorkItem#92, id=530}
2835:12:09:38,175 DEBUG SQL:230 - update timetracker.WORK_ISSUE set WORK_ITEM_ID=?, ISSUE_IDX=? where ID=?
2836:12:09:38,178 DEBUG Printer:82 - de.biotronik.timetracker.ws.WorkIssue{startDate=2005-04-13 09:45:24, endDate=2005-04-13 10:00:00, workItem=WorkItem#92, id=574}
2837:12:09:38,181 DEBUG BatcherImpl:115 - reusing prepared statement
2838:12:09:38,183 DEBUG Printer:82 - de.biotronik.timetracker.ws.WorkIssue{startDate=2005-04-13 11:09:28, endDate=2005-04-13 12:09:28, workItem=WorkItem#92, id=577}
2839:12:09:38,187 DEBUG SQL:230 - update timetracker.WORK_ISSUE set WORK_ITEM_ID=?, ISSUE_IDX=? where ID=?
2840:12:09:38,192 DEBUG Printer:82 - de.biotronik.timetracker.ws.WorkIssue{startDate=2005-04-07 14:02:30, endDate=2005-04-07 14:54:00, workItem=WorkItem#92, id=436}
2841:12:09:38,196 DEBUG BasicCollectionPersister:532 - done inserting collection: 7 rows inserted
2842:12:09:38,197 DEBUG SessionImpl:2380 - executing flush
2843:12:09:38,200 DEBUG BasicCollectionPersister:510 - Inserting collection: [de.biotronik.timetracker.ws.WorkItem.children#5]
2844:12:09:38,202 DEBUG EntityPersister:447 - Inserting entity: [de.biotronik.timetracker.ws.WorkIssue#585]
2845:12:09:38,205 DEBUG BatcherImpl:211 - done closing: -2 open PreparedStatements, 0 open ResultSets
2846:12:09:38,207 DEBUG BatcherImpl:204 - about to open: -2 open PreparedStatements, 0 open ResultSets
2847:12:09:38,210 DEBUG BatcherImpl:275 - closing statement
2848:12:09:38,212 DEBUG SQL:230 - insert into timetracker.WORK_ISSUE (WORK_ITEM_ID, START_DATE, END_DATE, ID) values (?, ?, ?, ?)
2849:12:09:38,216 DEBUG BatcherImpl:204 - about to open: -1 open PreparedStatements, 0 open ResultSets
2850:12:09:38,218 DEBUG BatcherImpl:253 - preparing statement
2851:12:09:38,220 DEBUG SQL:230 - update timetracker.WORK_ITEM set PARENT_ID=?, CHILD_IDX=? where ID=?
2852:12:09:38,223 DEBUG EntityPersister:382 - Dehydrating entity: [de.biotronik.timetracker.ws.WorkIssue#585]
2853:12:09:38,225 DEBUG BatcherImpl:253 - preparing statement
2854:12:09:38,232 DEBUG BatcherImpl:211 - done closing: -1 open PreparedStatements, 0 open ResultSets
2855:12:09:38,234 DEBUG BasicCollectionPersister:532 - done inserting collection: 1 rows inserted
2856:12:09:38,234 DEBUG BatcherImpl:275 - closing statement
As reference here is another issue that did not fail (584):
Code:
2390:12:06:32,257 DEBUG SessionImpl:789 - generated identifier: 584
2391:12:06:32,259 DEBUG SessionImpl:836 - saving [de.biotronik.timetracker.ws.WorkIssue#584]
2392:12:06:32,261 DEBUG Cascades:506 - done processing cascades for: de.biotronik.timetracker.ws.WorkItem
2393:12:06:32,264 DEBUG JDBCTransaction:59 - commit
2394:12:06:32,266 DEBUG SessionImpl:2267 - flushing session
2395:12:06:32,268 DEBUG Cascades:497 - processing cascades for: de.biotronik.timetracker.ws.WorkItem
2396:12:06:32,270 DEBUG Cascades:524 - cascading to collection: de.biotronik.timetracker.ws.WorkItem.children
2397:12:06:32,273 DEBUG Cascades:524 - cascading to collection: de.biotronik.timetracker.ws.WorkItem.workIssues
2398:12:06:32,275 DEBUG Cascades:113 - cascading to saveOrUpdate()
2399:12:06:32,278 DEBUG SessionImpl:1382 - saveOrUpdate() persistent instance
2400:12:06:32,285 DEBUG Cascades:113 - cascading to saveOrUpdate()
2401:12:06:32,287 DEBUG SessionImpl:1382 - saveOrUpdate() persistent instance
2402:12:06:32,290 DEBUG Cascades:113 - cascading to saveOrUpdate()
2403:12:06:32,292 DEBUG SessionImpl:1382 - saveOrUpdate() persistent instance
2404:12:06:32,294 DEBUG Cascades:113 - cascading to saveOrUpdate()
2405:12:06:32,297 DEBUG SessionImpl:1382 - saveOrUpdate() persistent instance
2406:12:06:32,299 DEBUG Cascades:113 - cascading to saveOrUpdate()
2407:12:06:32,302 DEBUG SessionImpl:1382 - saveOrUpdate() persistent instance
2408:12:06:32,304 DEBUG Cascades:506 - done processing cascades for: de.biotronik.timetracker.ws.WorkItem
2409:12:06:32,306 DEBUG SessionImpl:2467 - Flushing entities and processing referenced collections
2410:12:06:32,309 DEBUG SessionImpl:2561 - Updating entity: [de.biotronik.timetracker.ws.WorkItem#41]
2411:12:06:32,311 DEBUG SessionImpl:2916 - Collection found: [de.biotronik.timetracker.ws.WorkItem.children#41], was: [<unreferenced>]
2412:12:06:32,314 DEBUG SessionImpl:2916 - Collection found: [de.biotronik.timetracker.ws.WorkItem.workIssues#41], was: [<unreferenced>]
2413:12:06:32,316 DEBUG SessionImpl:2561 - Updating entity: [de.biotronik.timetracker.ws.WorkIssue#60]
2414:12:06:32,318 DEBUG SessionImpl:2561 - Updating entity: [de.biotronik.timetracker.ws.WorkIssue#156]
2415:12:06:32,321 DEBUG SessionImpl:2561 - Updating entity: [de.biotronik.timetracker.ws.WorkIssue#185]
2416:12:06:32,323 DEBUG SessionImpl:2561 - Updating entity: [de.biotronik.timetracker.ws.WorkIssue#372]
2417:12:06:32,325 DEBUG SessionImpl:2808 - Processing unreferenced collections
2418:12:06:32,328 DEBUG SessionImpl:2822 - Scheduling collection removes/(re)creates/updates
2419:12:06:32,330 DEBUG SessionImpl:2291 - Flushed: 1 insertions, 5 updates, 0 deletions to 6 objects
2420:12:06:32,332 DEBUG SessionImpl:2296 - Flushed: 2 (re)creations, 0 updates, 2 removals to 2 collections
2421:12:06:32,334 DEBUG Printer:75 - listing entities:
2422:12:06:32,340 DEBUG Printer:82 - de.biotronik.timetracker.ws.WorkItem{referenceTime=0, bookable=true, deletable=true, workIssues=[WorkIssue#60, WorkIssue#156, WorkIssue#185, WorkIssue#372, WorkIssue#584], name=User Help Desk, children=[], parent=WorkItem#20, id=41}
2423:12:06:32,344 DEBUG SessionImpl:560 - opened session
2424:12:06:32,355 DEBUG JDBCTransaction:37 - begin
2425:12:06:32,356 DEBUG Printer:82 - de.biotronik.timetracker.ws.WorkIssue{startDate=2005-03-29 12:52:02, endDate=2005-03-29 13:16:21, workItem=WorkItem#41, id=185}
2426:12:06:32,357 DEBUG DriverManagerConnectionProvider:84 - total checked-out connections: -3
2427:12:06:32,360 DEBUG Printer:82 - de.biotronik.timetracker.ws.WorkIssue{startDate=2005-03-17 10:01:21, endDate=2005-03-17 11:01:21, workItem=WorkItem#41, id=60}
2428:12:06:32,361 DEBUG DriverManagerConnectionProvider:100 - opening new JDBC connection
2429:12:06:32,364 DEBUG Printer:82 - de.biotronik.timetracker.ws.WorkIssue{startDate=2005-03-23 17:19:07, endDate=2005-03-23 17:44:22, workItem=WorkItem#41, id=156}
2430:12:06:32,369 DEBUG Printer:82 - de.biotronik.timetracker.ws.WorkIssue{startDate=2005-04-06 11:49:12, endDate=2005-04-06 18:28:00, workItem=WorkItem#41, id=372}
2431:12:06:32,372 DEBUG Printer:82 - de.biotronik.timetracker.ws.WorkIssue{startDate=2005-04-13 12:06:32, endDate=2005-04-13 12:36:32, workItem=WorkItem#41, id=584}
2432:12:06:32,374 DEBUG SessionImpl:2380 - executing flush
2433:12:06:32,376 DEBUG EntityPersister:447 - Inserting entity: [de.biotronik.timetracker.ws.WorkIssue#584]
2434:12:06:32,378 DEBUG BatcherImpl:204 - about to open: -1 open PreparedStatements, 0 open ResultSets
2435:12:06:32,381 DEBUG SQL:230 - insert into timetracker.WORK_ISSUE (WORK_ITEM_ID, START_DATE, END_DATE, ID) values (?, ?, ?, ?)
2436:12:06:32,383 DEBUG BatcherImpl:253 - preparing statement
2437:12:06:32,386 DEBUG EntityPersister:382 - Dehydrating entity: [de.biotronik.timetracker.ws.WorkIssue#584]
2438:12:06:32,401 DEBUG BatcherImpl:211 - done closing: -1 open PreparedStatements, 0 open ResultSets
2439:12:06:32,404 DEBUG BatcherImpl:275 - closing statement