Massive insert with JPA + Hibernate

前端 未结 3 430
悲哀的现实
悲哀的现实 2020-12-15 09:22

I need to do a massive insert using EJB 3, Hibernate, Spring Data and Oracle. Originally, I am using Spring Data and code is below:

talaoAITDAO.save(taloes);         


        
3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-15 09:50

    The solution posted by M. Deinum worked great for me, provided I set the following Hibernate properties in my JPA persistence.xml file:

    
    
    
    
    
    
    

    I am using an Oracle database, so I also have this one defined:

    
    

提交回复
热议问题