Batch Insertions with Hibernate & Spring

前端 未结 3 795
名媛妹妹
名媛妹妹 2021-02-06 12:54

My application is based on Hibernate 3.2 and Spring 2.5. Here is the transaction management related snippet from the application context:

  

        
3条回答
  •  -上瘾入骨i
    2021-02-06 13:49

    I would refactor parse in a way it doesn't call save directly but takes some callback from service layer. Service layer would pass its transactional method with save call as this callback.

    It may not work exactly as decribed in your case but from this short description this would be something I'd try.

提交回复
热议问题