Performance issue in data loading to Oracle DB

Recently we have migrated from hibernate 3.3.2 ga to hibernate 5.4.3.
All the hibernate configuration being done using persistence.xml and spring application context,moved from hbm.xml mapping file to annotations

We are facing the below performance issue

  1. Earlier in hibernate 3.3.2 it took around 1 hour 30 minutes to load 1 million data to db but after upgrading it is taking around 6 hours for the same amount of data.

Please help me to resolve this performance issue.

Please let me know if any further details required.