Deprecated API

Contents

Deprecated Interfaces

Cache
As of 3.3; see for details.
CacheConcurrencyStrategy
As of 3.3; see for details.
CacheProvider
As of 3.3; see for details.

Deprecated Classes

Expression
Use Restrictions.
Oracle9Dialect
Use either Oracle9iDialect or Oracle10gDialect instead
OracleDialect
Use Oracle8iDialect instead.

Deprecated Fields

org.hibernate.FetchMode.LAZY
use FetchMode.SELECT
org.hibernate.FetchMode.EAGER
use FetchMode.JOIN
org.hibernate.FlushMode.NEVER
use MANUAL instead.

Deprecated Methods

org.hibernate.hql.ast.tree.ConstructorNode.getDataType()
(tell clover to ignore this method)
org.hibernate.dialect.Dialect.getCreateSequenceStrings(String)
org.hibernate.proxy.dom4j.Dom4jProxy.setAttributeValue(String,String)
org.hibernate.proxy.dom4j.Dom4jProxy.setAttributeValue(QName,String)
org.hibernate.tuple.ElementWrapper.setAttributeValue(String,String)
org.hibernate.tuple.ElementWrapper.setAttributeValue(QName,String)
org.hibernate.criterion.Expression.sql(String,Object[],Type[])
org.hibernate.criterion.Expression.sql(String,Object,Type)
org.hibernate.criterion.Expression.sql(String)
org.hibernate.Session.connection()
(scheduled for removal in 4.x).
org.hibernate.Session.reconnect()
Manual reconnection is only needed in the case of application-supplied connections, in which case the reconnect(java.sql.Connection) for should be used.
org.hibernate.classic.Session.saveOrUpdateCopy(Object)
org.hibernate.classic.Session.saveOrUpdateCopy(Object,Serializable)
with no replacement
org.hibernate.classic.Session.saveOrUpdateCopy(String,Object)
org.hibernate.classic.Session.saveOrUpdateCopy(String,Object,Serializable)
with no replacement
org.hibernate.classic.Session.find(String)
use Session.Query.list()
org.hibernate.classic.Session.find(String,Object,Type)
use Session.setXYZ.Query.list()
org.hibernate.classic.Session.find(String,Object[],Type[])
use Session.setXYZ.Query.list()
org.hibernate.classic.Session.iterate(String)
use Session.Query.iterate()
org.hibernate.classic.Session.iterate(String,Object,Type)
use Session.setXYZ.Query.iterate()
org.hibernate.classic.Session.iterate(String,Object[],Type[])
use Session.setXYZ.Query.iterate()
org.hibernate.classic.Session.filter(Object,String)
use createFilter(Object, String).Query.list()
org.hibernate.classic.Session.filter(Object,String,Object,Type)
use createFilter(Object, String).setXYZ.Query.list()
org.hibernate.classic.Session.filter(Object,String,Object[],Type[])
use createFilter(Object, String).setXYZ.Query.list()
org.hibernate.classic.Session.delete(String)
consider using HQL delete statements
org.hibernate.classic.Session.delete(String,Object,Type)
consider using HQL delete statements
org.hibernate.classic.Session.delete(String,Object[],Type[])
consider using HQL delete statements
org.hibernate.classic.Session.createSQLQuery(String,String,Class)
will be replaced with a more Query like interface in later release
org.hibernate.classic.Session.createSQLQuery(String,String[],Class[])
will be replaced with a more Query like interface in later release
org.hibernate.classic.Session.save(Object,Serializable)
declare identifier properties for all classes
org.hibernate.classic.Session.save(String,Object,Serializable)
declare identifier properties for all classes
org.hibernate.classic.Session.update(Object,Serializable)
declare identifier properties for all classes
org.hibernate.classic.Session.update(String,Object,Serializable)
declare identifier properties for all classes
org.hibernate.impl.SessionImpl.connection()
(scheduled for removal in 4.x).
org.hibernate.impl.SessionImpl.reconnect()
Manual reconnection is only needed in the case of application-supplied connections, in which case the reconnect(java.sql.Connection) for should be used.
org.hibernate.impl.SessionImpl.save(Object,Serializable)
declare identifier properties for all classes
org.hibernate.impl.SessionImpl.save(String,Object,Serializable)
declare identifier properties for all classes
org.hibernate.impl.SessionImpl.update(Object,Serializable)
declare identifier properties for all classes
org.hibernate.impl.SessionImpl.update(String,Object,Serializable)
declare identifier properties for all classes
org.hibernate.impl.SessionImpl.saveOrUpdateCopy(String,Object)
org.hibernate.impl.SessionImpl.saveOrUpdateCopy(Object)
org.hibernate.impl.SessionImpl.saveOrUpdateCopy(String,Object,Serializable)
with no replacement
org.hibernate.impl.SessionImpl.saveOrUpdateCopy(Object,Serializable)
with no replacement
org.hibernate.impl.SessionImpl.find(String,Object,Type)
use Session.setXYZ.Query.list()
org.hibernate.impl.SessionImpl.find(String,Object[],Type[])
use Session.setXYZ.Query.list()
org.hibernate.impl.SessionImpl.iterate(String)
use Session.Query.iterate()
org.hibernate.impl.SessionImpl.iterate(String,Object,Type)
use Session.setXYZ.Query.iterate()
org.hibernate.impl.SessionImpl.iterate(String,Object[],Type[])
use Session.setXYZ.Query.iterate()
org.hibernate.impl.SessionImpl.delete(String)
consider using HQL delete statements
org.hibernate.impl.SessionImpl.delete(String,Object,Type)
consider using HQL delete statements
org.hibernate.impl.SessionImpl.delete(String,Object[],Type[])
consider using HQL delete statements
org.hibernate.impl.SessionImpl.filter(Object,String)
use createFilter(Object, String).Query.list()
org.hibernate.impl.SessionImpl.filter(Object,String,Object,Type)
use createFilter(Object, String).setXYZ.Query.list()
org.hibernate.impl.SessionImpl.filter(Object,String,Object[],Type[])
use createFilter(Object, String).setXYZ.Query.list()
org.hibernate.impl.SessionImpl.createSQLQuery(String,String,Class)
will be replaced with a more Query like interface in later release
org.hibernate.sql.Template.renderWhereStringTemplate(String,String,Dialect)
Only intended for annotations usage; use renderWhereStringTemplate(String,String,Dialect,SQLFunctionRegistry) instead
org.hibernate.type.TypeFactory.customCollection(String,String,String,boolean)
Use customCollection(String, java.util.Properties, String, String, boolean) instead

Deprecated Constructors

org.hibernate.engine.NamedSQLQueryDefinition.NamedSQLQueryDefinition(String,String,List,boolean,String,Integer,Integer,FlushMode,Map,boolean)
org.hibernate.tool.hbm2ddl.SchemaExport.SchemaExport(Configuration,Properties)
properties may be specified via the Configuration object