# Deprecated API

## Contents

- Methods

Deprecated Methods
Method
Description
org.springframework.orm.hibernate5.HibernateOperations.bulkUpdate(String, Object...)
as of 5.0.4, in favor of a custom `HibernateCallback` lambda code block passed to the general `HibernateOperations.execute(org.springframework.orm.hibernate5.HibernateCallback<T>)` method
org.springframework.orm.hibernate5.HibernateOperations.closeIterator(Iterator<?>)
as of 5.0.4, in favor of a custom `HibernateCallback` lambda code block passed to the general `HibernateOperations.execute(org.springframework.orm.hibernate5.HibernateCallback<T>)` method
org.springframework.orm.hibernate5.HibernateOperations.find(String, Object...)
as of 5.0.4, in favor of a custom `HibernateCallback` lambda code block passed to the general `HibernateOperations.execute(org.springframework.orm.hibernate5.HibernateCallback<T>)` method
org.springframework.orm.hibernate5.HibernateOperations.findByNamedParam(String, String[], Object[])
as of 5.0.4, in favor of a custom `HibernateCallback` lambda code block passed to the general `HibernateOperations.execute(org.springframework.orm.hibernate5.HibernateCallback<T>)` method
org.springframework.orm.hibernate5.HibernateOperations.findByNamedParam(String, String, Object)
as of 5.0.4, in favor of a custom `HibernateCallback` lambda code block passed to the general `HibernateOperations.execute(org.springframework.orm.hibernate5.HibernateCallback<T>)` method
org.springframework.orm.hibernate5.HibernateOperations.findByNamedQuery(String, Object...)
as of 5.0.4, in favor of a custom `HibernateCallback` lambda code block passed to the general `HibernateOperations.execute(org.springframework.orm.hibernate5.HibernateCallback<T>)` method
org.springframework.orm.hibernate5.HibernateOperations.findByNamedQueryAndNamedParam(String, String[], Object[])
as of 5.0.4, in favor of a custom `HibernateCallback` lambda code block passed to the general `HibernateOperations.execute(org.springframework.orm.hibernate5.HibernateCallback<T>)` method
org.springframework.orm.hibernate5.HibernateOperations.findByNamedQueryAndNamedParam(String, String, Object)
as of 5.0.4, in favor of a custom `HibernateCallback` lambda code block passed to the general `HibernateOperations.execute(org.springframework.orm.hibernate5.HibernateCallback<T>)` method
org.springframework.orm.hibernate5.HibernateOperations.findByNamedQueryAndValueBean(String, Object)
as of 5.0.4, in favor of a custom `HibernateCallback` lambda code block passed to the general `HibernateOperations.execute(org.springframework.orm.hibernate5.HibernateCallback<T>)` method
org.springframework.orm.hibernate5.HibernateOperations.findByValueBean(String, Object)
as of 5.0.4, in favor of a custom `HibernateCallback` lambda code block passed to the general `HibernateOperations.execute(org.springframework.orm.hibernate5.HibernateCallback<T>)` method
org.springframework.orm.hibernate5.HibernateOperations.iterate(String, Object...)
as of 5.0.4, in favor of a custom `HibernateCallback` lambda code block passed to the general `HibernateOperations.execute(org.springframework.orm.hibernate5.HibernateCallback<T>)` method
org.springframework.orm.hibernate5.HibernateTemplate.bulkUpdate(String, Object...)
org.springframework.orm.hibernate5.HibernateTemplate.closeIterator(Iterator<?>)
org.springframework.orm.hibernate5.HibernateTemplate.find(String, Object...)
org.springframework.orm.hibernate5.HibernateTemplate.findByNamedParam(String, String[], Object[])
org.springframework.orm.hibernate5.HibernateTemplate.findByNamedParam(String, String, Object)
org.springframework.orm.hibernate5.HibernateTemplate.findByNamedQuery(String, Object...)
org.springframework.orm.hibernate5.HibernateTemplate.findByNamedQueryAndNamedParam(String, String[], Object[])
org.springframework.orm.hibernate5.HibernateTemplate.findByNamedQueryAndNamedParam(String, String, Object)
org.springframework.orm.hibernate5.HibernateTemplate.findByNamedQueryAndValueBean(String, Object)
org.springframework.orm.hibernate5.HibernateTemplate.findByValueBean(String, Object)
org.springframework.orm.hibernate5.HibernateTemplate.iterate(String, Object...)
org.springframework.orm.hibernate5.HibernateTransactionManager.setAllowResultAccessAfterCompletion(boolean)
as of 5.3.29 since Hibernate 5.x aggressively closes ResultSets on commit, making it impossible to rely on ResultSet holdability. Also, Spring does not provide an equivalent setting on `JpaTransactionManager`.