Deprecated API

Deprecated Classes
org.hibernate.dialect.Oracle9Dialect
          Use either Oracle9iDialect or Oracle10gDialect instead 
org.hibernate.dialect.OracleDialect
          Use Oracle8iDialect instead. 
org.hibernate.dialect.SybaseDialect
          SybaseASE15Dialect or SQLServerDialect should be used instead. 
 

Deprecated Interfaces
org.hibernate.hql.ast.tree.ParameterContainer
            
 

Deprecated Fields
org.hibernate.cache.OptimisticTreeCacheProvider.CONFIG_RESOURCE
          use Environment.CACHE_PROVIDER_CONFIG 
org.hibernate.cache.TreeCacheProvider.CONFIG_RESOURCE
          use org.hibernate.cfg.Environment.CACHE_PROVIDER_CONFIG 
org.hibernate.FetchMode.EAGER
          use FetchMode.JOIN 
org.hibernate.FetchMode.LAZY
          use FetchMode.SELECT 
org.hibernate.FlushMode.NEVER
          use FlushMode.MANUAL instead. 
 

Deprecated Methods
org.hibernate.Session.connection()
          To be replaced with a SPI for performing work against the connection; scheduled for removal in 4.x 
org.hibernate.hql.ast.util.ASTUtil.create(ASTFactory, int, String)
          silly 
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.type.TypeFactory.customCollection(String, String, String, boolean)
          Use TypeFactory.customCollection(String, java.util.Properties, String, String, boolean) instead 
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.filter(Object, String)
          use Session.createFilter(Object, String).Query.list() 
org.hibernate.classic.Session.filter(Object, String, Object[], Type[])
          use Session.createFilter(Object, String).setXYZ.Query.list() 
org.hibernate.classic.Session.filter(Object, String, Object, Type)
          use Session.createFilter(Object, String).setXYZ.Query.list() 
org.hibernate.classic.Session.find(String)
          use Session.createQuery(java.lang.String).Query.list() 
org.hibernate.classic.Session.find(String, Object[], Type[])
          use Session.createQuery(java.lang.String).setXYZ.Query.list() 
org.hibernate.classic.Session.find(String, Object, Type)
          use Session.createQuery(java.lang.String).setXYZ.Query.list() 
org.hibernate.hql.ast.util.ASTUtil.getConstantName(Class, int)
          Use #getTokenTypeName instead 
org.hibernate.dialect.Dialect.getCreateSequenceStrings(String)
          Use Dialect.getCreateSequenceString(String, int, int) instead 
org.hibernate.hql.ast.tree.ConstructorNode.getDataType()
          (tell clover to ignore this method) 
org.hibernate.classic.Session.iterate(String)
          use Session.createQuery(java.lang.String).Query.iterate() 
org.hibernate.classic.Session.iterate(String, Object[], Type[])
          use Session.createQuery(java.lang.String).setXYZ.Query.iterate() 
org.hibernate.classic.Session.iterate(String, Object, Type)
          use Session.createQuery(java.lang.String).setXYZ.Query.iterate() 
org.hibernate.Session.reconnect()
          Manual reconnection is only needed in the case of application-supplied connections, in which case the Session.reconnect(java.sql.Connection) for should be used. 
org.hibernate.sql.Template.renderWhereStringTemplate(String, String, Dialect)
          Only intended for annotations usage; use Template.renderWhereStringTemplate(String, String, Dialect, SQLFunctionRegistry) instead 
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.saveOrUpdateCopy(Object)
          use Session.merge(Object) 
org.hibernate.classic.Session.saveOrUpdateCopy(Object, Serializable)
          with no replacement 
org.hibernate.classic.Session.saveOrUpdateCopy(String, Object)
          use Session.merge(String, Object) 
org.hibernate.classic.Session.saveOrUpdateCopy(String, Object, Serializable)
          with no replacement 
org.hibernate.proxy.dom4j.Dom4jProxy.setAttributeValue(QName, String)
            
org.hibernate.tuple.ElementWrapper.setAttributeValue(QName, String)
            
org.hibernate.proxy.dom4j.Dom4jProxy.setAttributeValue(String, String)
            
org.hibernate.tuple.ElementWrapper.setAttributeValue(String, String)
            
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 
 

Deprecated Constructors
org.hibernate.transform.AliasToEntityMapResultTransformer()
          Use the AliasToEntityMapResultTransformer.INSTANCE reference instead of explicitly creating a new one. 
org.hibernate.transform.DistinctRootEntityResultTransformer()
          Use the DistinctRootEntityResultTransformer.INSTANCE reference instead of explicitly creating a new one. 
org.hibernate.engine.NamedSQLQueryDefinition(String, String, List, boolean, String, Integer, Integer, FlushMode, Map, boolean)
            
org.hibernate.transform.PassThroughResultTransformer()
          Use the PassThroughResultTransformer.INSTANCE reference instead of explicitly creating a new one. 
org.hibernate.transform.RootEntityResultTransformer()
          Use the RootEntityResultTransformer.INSTANCE reference instead of explicitly creating a new one. 
org.hibernate.tool.hbm2ddl.SchemaExport(Configuration, Properties)
          properties may be specified via the Configuration object