Spring Data JPA deleteInBatch -
while delete(list) working fine, if try delete deleteinbatch(list), thowing exception below org.springframework.dao.dataintegrityviolationexception: not execute statement; sql [n/a]; constraint [dept_details_f_key1]; nested exception org.hibernate.exception.constraintviolationexception: not execute statement @ org.springframework.orm.jpa.vendor.hibernatejpadialect.converthibernateaccessexception(hibernatejpadialect.java:248) @ org.springframework.orm.jpa.vendor.hibernatejpadialect.translateexceptionifpossible(hibernatejpadialect.java:214) @ org.springframework.orm.jpa.abstractentitymanagerfactorybean.translateexceptionifpossible(abstractentitymanagerfactorybean.java:417) @ org.springframework.dao.support.chainedpersistenceexceptiontranslator.translateexceptionifpossible(chainedpersistenceexceptiontranslator.java:59) @ org.springframework.dao.support.dataaccessutils.translateifnecessary(dataaccessutils.java:213) @ org.springframework.dao.support.persistenc...