Top Deprecated
Spring Object/Relational Mapping 6.1.4

Deprecated API


No API in this release is deprecated for removal.

Deprecated Item Summary

SinceDeprecated Item and Description

Returns:

a result object, or null if none
org.springframework.orm.hibernate5.HibernateCallback.doInHibernate
(Session
active Hibernate session
session
)

Deprecated as a consequence of Session being deprecated. See corresponding docs for further information.

Returns:

the number of instances updated/deleted
org.springframework.orm.hibernate5.HibernateOperations.bulkUpdate
(String
an update/delete query expressed in Hibernate's query language
queryString
,
Object...
the values of the parameters
values
)

as of 5.0.4, in favor of a custom HibernateCallback lambda code block passed to the general execute method

org.springframework.orm.hibernate5.HibernateOperations.closeIterator(Iterator<?>
the Iterator to close
it
)

as of 5.0.4, in favor of a custom HibernateCallback lambda code block passed to the general execute method

Returns:

a List containing the results of the query execution
org.springframework.orm.hibernate5.HibernateOperations.find
(String
a query expressed in Hibernate's query language
queryString
,
Object...
the values of the parameters
values
)

as of 5.0.4, in favor of a custom HibernateCallback lambda code block passed to the general execute method

Returns:

a List containing the results of the query execution
org.springframework.orm.hibernate5.HibernateOperations.findByNamedParam
(String
a query expressed in Hibernate's query language
queryString
,
String
the name of the parameter
paramName
,
Object
the value of the parameter
value
)

as of 5.0.4, in favor of a custom HibernateCallback lambda code block passed to the general execute method

Returns:

a List containing the results of the query execution
org.springframework.orm.hibernate5.HibernateOperations.findByNamedParam
(String
a query expressed in Hibernate's query language
queryString
,
String[]
the names of the parameters
paramNames
,
Object[]
the values of the parameters
values
)

as of 5.0.4, in favor of a custom HibernateCallback lambda code block passed to the general execute method

Returns:

a List containing the results of the query execution
org.springframework.orm.hibernate5.HibernateOperations.findByNamedQuery
(String
the name of a Hibernate query in a mapping file
queryName
,
Object...
the values of the parameters
values
)

as of 5.0.4, in favor of a custom HibernateCallback lambda code block passed to the general execute method

Returns:

a List containing the results of the query execution
org.springframework.orm.hibernate5.HibernateOperations.findByNamedQueryAndNamedParam
(String
the name of a Hibernate query in a mapping file
queryName
,
String
the name of parameter
paramName
,
Object
the value of the parameter
value
)

as of 5.0.4, in favor of a custom HibernateCallback lambda code block passed to the general execute method

Returns:

a List containing the results of the query execution
org.springframework.orm.hibernate5.HibernateOperations.findByNamedQueryAndNamedParam
(String
the name of a Hibernate query in a mapping file
queryName
,
String[]
the names of the parameters
paramNames
,
Object[]
the values of the parameters
values
)

as of 5.0.4, in favor of a custom HibernateCallback lambda code block passed to the general execute method

Returns:

a List containing the results of the query execution
org.springframework.orm.hibernate5.HibernateOperations.findByNamedQueryAndValueBean
(String
the name of a Hibernate query in a mapping file
queryName
,
Object
the values of the parameters
valueBean
)

as of 5.0.4, in favor of a custom HibernateCallback lambda code block passed to the general execute method

Returns:

a List containing the results of the query execution
org.springframework.orm.hibernate5.HibernateOperations.findByValueBean
(String
a query expressed in Hibernate's query language
queryString
,
Object
the values of the parameters
valueBean
)

as of 5.0.4, in favor of a custom HibernateCallback lambda code block passed to the general execute method

Returns:

an Iterator containing 0 or more persistent instances
org.springframework.orm.hibernate5.HibernateOperations.iterate
(String
a query expressed in Hibernate's query language
queryString
,
Object...
the values of the parameters
values
)

as of 5.0.4, in favor of a custom HibernateCallback lambda code block passed to the general execute method

org.springframework.orm.hibernate5.HibernateTemplate.CloseSuppressingInvocationHandler.CloseSuppressingInvocationHandler(Session target)

Deprecated as a consequence of Session being deprecated. See corresponding docs for further information.

org.springframework.orm.hibernate5.HibernateTemplate.CloseSuppressingInvocationHandler.target

Deprecated as a consequence of Session being deprecated. See corresponding docs for further information.

org.springframework.orm.hibernate5.HibernateTemplate.HibernateTemplate(SessionFactory
the SessionFactory to create Sessions with
sessionFactory
)

Deprecated as a consequence of SessionFactory being deprecated. See corresponding docs for further information.

org.springframework.orm.hibernate5.HibernateTemplate.applyNamedParameterToQuery(Query<?>
the Query object
queryObject
,
String
the name of the parameter
paramName
,
Object
the value of the parameter
value
)

Deprecated as a consequence of Query being deprecated. See corresponding docs for further information.

org.springframework.orm.hibernate5.HibernateTemplate.bulkUpdate(String
an update/delete query expressed in Hibernate's query language
queryString
,
Object...
the values of the parameters
values
)

org.springframework.orm.hibernate5.HibernateTemplate.checkWriteOperationAllowed(Session
current Hibernate Session
session
)

Deprecated as a consequence of Session being deprecated. See corresponding docs for further information.

Returns:

the Session proxy
org.springframework.orm.hibernate5.HibernateTemplate.createSessionProxy
(Session
the Hibernate Session to create a proxy for
session
)

Deprecated as a consequence of Session being deprecated. See corresponding docs for further information.

org.springframework.orm.hibernate5.HibernateTemplate.disableFilters(Session
the current Hibernate Session
session
)

Deprecated as a consequence of Session being deprecated. See corresponding docs for further information.

org.springframework.orm.hibernate5.HibernateTemplate.enableFilters(Session
the current Hibernate Session
session
)

Deprecated as a consequence of Session being deprecated. See corresponding docs for further information.

org.springframework.orm.hibernate5.HibernateTemplate.find(String
a query expressed in Hibernate's query language
queryString
,
Object...
the values of the parameters
values
)

org.springframework.orm.hibernate5.HibernateTemplate.findByNamedParam(String
a query expressed in Hibernate's query language
queryString
,
String
the name of the parameter
paramName
,
Object
the value of the parameter
value
)

org.springframework.orm.hibernate5.HibernateTemplate.findByNamedParam(String
a query expressed in Hibernate's query language
queryString
,
String[]
the names of the parameters
paramNames
,
Object[]
the values of the parameters
values
)

org.springframework.orm.hibernate5.HibernateTemplate.findByNamedQuery(String
the name of a Hibernate query in a mapping file
queryName
,
Object...
the values of the parameters
values
)

org.springframework.orm.hibernate5.HibernateTemplate.findByNamedQueryAndNamedParam(String
the name of a Hibernate query in a mapping file
queryName
,
String
the name of parameter
paramName
,
Object
the value of the parameter
value
)

org.springframework.orm.hibernate5.HibernateTemplate.findByNamedQueryAndNamedParam(String
the name of a Hibernate query in a mapping file
queryName
,
String[]
the names of the parameters
paramNames
,
Object[]
the values of the parameters
values
)

org.springframework.orm.hibernate5.HibernateTemplate.findByNamedQueryAndValueBean(String
the name of a Hibernate query in a mapping file
queryName
,
Object
the values of the parameters
valueBean
)

org.springframework.orm.hibernate5.HibernateTemplate.findByValueBean(String
a query expressed in Hibernate's query language
queryString
,
Object
the values of the parameters
valueBean
)

org.springframework.orm.hibernate5.HibernateTemplate.getSessionFactory()

Deprecated as a consequence of SessionFactory being deprecated. See corresponding docs for further information.

org.springframework.orm.hibernate5.HibernateTemplate.iterate(String
a query expressed in Hibernate's query language
queryString
,
Object...
the values of the parameters
values
)

Returns:

the SessionFactory (never null)
org.springframework.orm.hibernate5.HibernateTemplate.obtainSessionFactory
()

Deprecated as a consequence of SessionFactory being deprecated. See corresponding docs for further information.

org.springframework.orm.hibernate5.HibernateTemplate.prepareQuery(Query<?>
the Query object to prepare
queryObject
)

Deprecated as a consequence of Query being deprecated. See corresponding docs for further information.

org.springframework.orm.hibernate5.HibernateTemplate.sessionFactory

Deprecated as a consequence of SessionFactory being deprecated. See corresponding docs for further information.

org.springframework.orm.hibernate5.HibernateTemplate.setSessionFactory(SessionFactory sessionFactory)

Deprecated as a consequence of SessionFactory being deprecated. See corresponding docs for further information.

org.springframework.orm.hibernate5.HibernateTransactionManager.HibernateTransactionManager(SessionFactory
the SessionFactory to manage transactions for
sessionFactory
)

Deprecated as a consequence of SessionFactory being deprecated. See corresponding docs for further information.

org.springframework.orm.hibernate5.HibernateTransactionManager.HibernateTransactionObject.setExistingSession(Session session)

Deprecated as a consequence of Session being deprecated. See corresponding docs for further information.

org.springframework.orm.hibernate5.HibernateTransactionManager.HibernateTransactionObject.setSession(Session session)

Deprecated as a consequence of Session being deprecated. See corresponding docs for further information.

org.springframework.orm.hibernate5.HibernateTransactionManager.disconnectOnCompletion(Session
the Hibernate Session to disconnect
session
)

Deprecated as a consequence of Session being deprecated. See corresponding docs for further information.

org.springframework.orm.hibernate5.HibernateTransactionManager.getSessionFactory()

Deprecated as a consequence of SessionFactory being deprecated. See corresponding docs for further information.

Returns:

the SessionFactory (never null)
org.springframework.orm.hibernate5.HibernateTransactionManager.obtainSessionFactory
()

Deprecated as a consequence of SessionFactory being deprecated. See corresponding docs for further information.

org.springframework.orm.hibernate5.HibernateTransactionManager.sessionFactory

Deprecated as a consequence of SessionFactory being deprecated. See corresponding docs for further information.

5.3.29
org.springframework.orm.hibernate5.HibernateTransactionManager.setAllowResultAccessAfterCompletion(boolean allowResultAccessAfterCompletion)

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 org.springframework.orm.jpa.JpaTransactionManager.

org.springframework.orm.hibernate5.HibernateTransactionManager.setSessionFactory(SessionFactory sessionFactory)

Deprecated as a consequence of SessionFactory being deprecated. See corresponding docs for further information.

Returns:

the SessionFactory instance
org.springframework.orm.hibernate5.LocalSessionFactoryBean.buildSessionFactory
(LocalSessionFactoryBuilder
a LocalSessionFactoryBuilder prepared by this LocalSessionFactoryBean
sfb
)

Deprecated as a consequence of SessionFactory being deprecated. See corresponding docs for further information.

org.springframework.orm.hibernate5.LocalSessionFactoryBean.getObject()

Deprecated as a consequence of SessionFactory being deprecated. See corresponding docs for further information.

org.springframework.orm.hibernate5.LocalSessionFactoryBean.sessionFactory

Deprecated as a consequence of SessionFactory being deprecated. See corresponding docs for further information.

org.springframework.orm.hibernate5.LocalSessionFactoryBuilder.BootstrapSessionFactoryInvocationHandler.getSessionFactory()

Deprecated as a consequence of SessionFactory being deprecated. See corresponding docs for further information.

org.springframework.orm.hibernate5.LocalSessionFactoryBuilder.buildSessionFactory(AsyncTaskExecutor bootstrapExecutor)

Deprecated as a consequence of SessionFactory being deprecated. See corresponding docs for further information.

org.springframework.orm.hibernate5.SessionFactoryUtils.closeSession(Session
the Hibernate Session to close (may be null)
session
)

Deprecated as a consequence of Session being deprecated. See corresponding docs for further information.

org.springframework.orm.hibernate5.SessionFactoryUtils.flush(Session
the Hibernate Session to flush
session
,
boolean
whether this flush is triggered by transaction synchronization
synch
)

Deprecated as a consequence of Session being deprecated. See corresponding docs for further information.

Returns:

the DataSource, or null if none found
org.springframework.orm.hibernate5.SessionFactoryUtils.getDataSource
(SessionFactory
the SessionFactory to check
sessionFactory
)

Deprecated as a consequence of SessionFactory being deprecated. See corresponding docs for further information.

org.springframework.orm.hibernate5.SessionHolder.SessionHolder(Session session)

Deprecated as a consequence of Session being deprecated. See corresponding docs for further information.

org.springframework.orm.hibernate5.SessionHolder.getSession()

Deprecated as a consequence of Session being deprecated. See corresponding docs for further information.

org.springframework.orm.hibernate5.SpringFlushSynchronization.SpringFlushSynchronization(Session session)

Deprecated as a consequence of Session being deprecated. See corresponding docs for further information.

org.springframework.orm.hibernate5.SpringFlushSynchronization.session

Deprecated as a consequence of Session being deprecated. See corresponding docs for further information.

org.springframework.orm.hibernate5.SpringJtaSessionContext.SpringJtaSessionContext(SessionFactoryImplementor factory)

Deprecated as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

org.springframework.orm.hibernate5.SpringJtaSessionContext.buildOrObtainSession()

Deprecated as a consequence of Session being deprecated. See corresponding docs for further information.

org.springframework.orm.hibernate5.SpringSessionContext.SpringSessionContext(SessionFactoryImplementor
the SessionFactory to provide current Sessions for
sessionFactory
)

Deprecated as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

org.springframework.orm.hibernate5.SpringSessionContext.currentSession()

Deprecated as a consequence of Session being deprecated. See corresponding docs for further information.

org.springframework.orm.hibernate5.SpringSessionContext.sessionFactory

Deprecated as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

org.springframework.orm.hibernate5.SpringSessionSynchronization.SpringSessionSynchronization(SessionHolder sessionHolder, SessionFactory sessionFactory)

Deprecated as a consequence of SessionFactory being deprecated. See corresponding docs for further information.

org.springframework.orm.hibernate5.SpringSessionSynchronization.SpringSessionSynchronization(SessionHolder sessionHolder, SessionFactory sessionFactory, boolean newSession)

Deprecated as a consequence of SessionFactory being deprecated. See corresponding docs for further information.

org.springframework.orm.hibernate5.SpringSessionSynchronization.getCurrentSession()

Deprecated as a consequence of Session being deprecated. See corresponding docs for further information.

org.springframework.orm.hibernate5.SpringSessionSynchronization.sessionFactory

Deprecated as a consequence of SessionFactory being deprecated. See corresponding docs for further information.

org.springframework.orm.hibernate5.support.AsyncRequestInterceptor.AsyncRequestInterceptor(SessionFactory sessionFactory, SessionHolder sessionHolder)

Deprecated as a consequence of SessionFactory being deprecated. See corresponding docs for further information.

org.springframework.orm.hibernate5.support.AsyncRequestInterceptor.sessionFactory

Deprecated as a consequence of SessionFactory being deprecated. See corresponding docs for further information.

Returns:

the new HibernateTemplate instance
org.springframework.orm.hibernate5.support.HibernateDaoSupport.createHibernateTemplate
(SessionFactory
the Hibernate SessionFactory to create a HibernateTemplate for
sessionFactory
)

Deprecated as a consequence of SessionFactory being deprecated. See corresponding docs for further information.

Returns:

the Hibernate Session
org.springframework.orm.hibernate5.support.HibernateDaoSupport.currentSession
()

Deprecated as a consequence of Session being deprecated. See corresponding docs for further information.

org.springframework.orm.hibernate5.support.HibernateDaoSupport.getSessionFactory()

Deprecated as a consequence of SessionFactory being deprecated. See corresponding docs for further information.

org.springframework.orm.hibernate5.support.HibernateDaoSupport.setSessionFactory(SessionFactory sessionFactory)

Deprecated as a consequence of SessionFactory being deprecated. See corresponding docs for further information.

Returns:

the SessionFactory to use
org.springframework.orm.hibernate5.support.OpenSessionInViewFilter.lookupSessionFactory
(HttpServletRequest
the current request
request
)

Deprecated as a consequence of SessionFactory being deprecated. See corresponding docs for further information.

Returns:

the SessionFactory to use
org.springframework.orm.hibernate5.support.OpenSessionInViewFilter.lookupSessionFactory
()

Deprecated as a consequence of SessionFactory being deprecated. See corresponding docs for further information.

Returns:

the Session to use
org.springframework.orm.hibernate5.support.OpenSessionInViewFilter.openSession
(SessionFactory
the SessionFactory that this filter uses
sessionFactory
)

Deprecated as a consequence of SessionFactory and Session being deprecated. See corresponding docs for further information.

org.springframework.orm.hibernate5.support.OpenSessionInViewInterceptor.getSessionFactory()

Deprecated as a consequence of SessionFactory being deprecated. See corresponding docs for further information.

org.springframework.orm.hibernate5.support.OpenSessionInViewInterceptor.obtainSessionFactory()

Deprecated as a consequence of SessionFactory being deprecated. See corresponding docs for further information.

Returns:

the Session to use
org.springframework.orm.hibernate5.support.OpenSessionInViewInterceptor.openSession
()

Deprecated as a consequence of Session being deprecated. See corresponding docs for further information.

org.springframework.orm.hibernate5.support.OpenSessionInViewInterceptor.sessionFactory

Deprecated as a consequence of SessionFactory being deprecated. See corresponding docs for further information.

org.springframework.orm.hibernate5.support.OpenSessionInViewInterceptor.setSessionFactory(SessionFactory sessionFactory)

Deprecated as a consequence of SessionFactory being deprecated. See corresponding docs for further information.

org.springframework.orm.hibernate5.support.OpenSessionInterceptor.getSessionFactory()

Deprecated as a consequence of SessionFactory being deprecated. See corresponding docs for further information.

Returns:

the Session to use
org.springframework.orm.hibernate5.support.OpenSessionInterceptor.openSession
(SessionFactory
the SessionFactory to use
sessionFactory
)

Deprecated as a consequence of SessionFactory and Session being deprecated. See corresponding docs for further information.

org.springframework.orm.hibernate5.support.OpenSessionInterceptor.sessionFactory

Deprecated as a consequence of SessionFactory being deprecated. See corresponding docs for further information.

org.springframework.orm.hibernate5.support.OpenSessionInterceptor.setSessionFactory(SessionFactory sessionFactory)

Deprecated as a consequence of SessionFactory being deprecated. See corresponding docs for further information.

org.springframework.orm.jpa.persistenceunit.PersistenceManagedTypesScanner.componentsIndex

Deprecated as a consequence of CandidateComponentsIndex being deprecated. See corresponding docs for further information.

org.springframework.orm.jpa.vendor.HibernateJpaDialect.HibernateConnectionHandle.HibernateConnectionHandle(SessionImplementor session)

Deprecated as a consequence of SessionImplementor being deprecated. See corresponding docs for further information.

org.springframework.orm.jpa.vendor.HibernateJpaDialect.HibernateConnectionHandle.session

Deprecated as a consequence of SessionImplementor being deprecated. See corresponding docs for further information.

org.springframework.orm.jpa.vendor.HibernateJpaDialect.SessionTransactionData.SessionTransactionData(SessionImplementor session, FlushMode previousFlushMode, boolean connectionPrepared, Integer previousIsolationLevel, boolean readOnly)

Deprecated as a consequence of SessionImplementor being deprecated. See corresponding docs for further information.

org.springframework.orm.jpa.vendor.HibernateJpaDialect.SessionTransactionData.session

Deprecated as a consequence of SessionImplementor being deprecated. See corresponding docs for further information.

org.springframework.orm.jpa.vendor.HibernateJpaDialect.getSession(EntityManager entityManager)

Deprecated as a consequence of SessionImplementor being deprecated. See corresponding docs for further information.

org.springframework.orm.jpa.vendor.HibernateJpaDialect.prepareFlushMode(Session session, boolean readOnly)

Deprecated as a consequence of Session being deprecated. See corresponding docs for further information.