Deprecated API


Contents
Deprecated Interfaces
org.hibernate.cache.Cache
          As of 3.3; see for details. 
org.hibernate.cache.CacheConcurrencyStrategy
          As of 3.3; see for details. 
org.hibernate.cache.CacheProvider
          As of 3.3; see for details. 
org.hibernate.hql.ast.tree.ParameterContainer
            
 

Deprecated Classes
org.hibernate.criterion.Expression
          Use Restrictions. 
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 Fields
org.hibernate.cache.TreeCacheProvider.CONFIG_RESOURCE
          use Environment.CACHE_PROVIDER_CONFIG 
org.hibernate.cache.OptimisticTreeCacheProvider.CONFIG_RESOURCE
          use 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. 
org.hibernate.cfg.Environment.VERSION
          To be removed in 3.5. Use Version#getVersionString instead. See Java Language Specification for details about compile-time constant expression for the reasons why this is being removed. 
 

Deprecated Methods
org.hibernate.Session.connection()
          (scheduled for removal in 4.x). Replacement depends on need; for doing direct JDBC stuff use Session.doWork(org.hibernate.jdbc.Work); for opening a 'temporary Session' use (TBD). 
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.event.AbstractPreDatabaseOperationEvent.getSource()
          Use AbstractEvent.getSession() instead 
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.cfg.Environment.jvmHasJDK14Timestamp()
          Starting with 3.3 Hibernate requires JDK 1.4 or higher 
org.hibernate.cfg.Environment.jvmSupportsGetGeneratedKeys()
          Starting with 3.3 Hibernate requires JDK 1.4 or higher 
org.hibernate.cfg.Environment.jvmSupportsLinkedHashCollections()
          Starting with 3.3 Hibernate requires JDK 1.4 or higher 
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.tuple.ElementWrapper.setAttributeValue(QName, String)
            
org.hibernate.proxy.dom4j.Dom4jProxy.setAttributeValue(QName, String)
            
org.hibernate.tuple.ElementWrapper.setAttributeValue(String, String)
            
org.hibernate.proxy.dom4j.Dom4jProxy.setAttributeValue(String, String)
            
org.hibernate.criterion.Expression.sql(String)
          use Restrictions.sqlRestriction(String) 
org.hibernate.criterion.Expression.sql(String, Object[], Type[])
          use Restrictions.sqlRestriction(String, Object[], Type[]) 
org.hibernate.criterion.Expression.sql(String, Object, Type)
          use Restrictions.sqlRestriction(String, Object, Type) 
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 (to be removed in 3.4). 
org.hibernate.transform.DistinctRootEntityResultTransformer()
          Use the DistinctRootEntityResultTransformer.INSTANCE reference instead of explicitly creating a new one (to be removed in 3.4). 
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 (to be removed in 3.4). 
org.hibernate.transform.RootEntityResultTransformer()
          Use the RootEntityResultTransformer.INSTANCE reference instead of explicitly creating a new one (to be removed in 3.4). 
org.hibernate.tool.hbm2ddl.SchemaExport(Configuration, Properties)
          properties may be specified via the Configuration object 
 



Copyright © null-null Red Hat Middleware, LLC. All Rights Reserved