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.type.AbstractBynaryType
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 
org.hibernate.type.AbstractCharArrayType
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 
org.hibernate.type.AbstractLongBinaryType
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 
org.hibernate.type.AbstractLongStringType
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 
org.hibernate.bytecode.cglib.AccessOptimizerAdapter
          Per HHH-5451 support for cglib as a bytecode provider has been deprecated. 
org.hibernate.type.ByteArrayBlobType
          replaced by Hibernate Core's WrappedMaterializedBlobType 
org.hibernate.bytecode.cglib.BytecodeProviderImpl
          Per HHH-5451 support for cglib as a bytecode provider has been deprecated. 
org.hibernate.bytecode.cglib.CglibClassTransformer
          Per HHH-5451 support for cglib as a bytecode provider has been deprecated. 
org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer
          Per HHH-5451 support for cglib as a bytecode provider has been deprecated. 
org.hibernate.proxy.pojo.cglib.CGLIBProxyFactory
          Per HHH-5451 support for cglib as a bytecode provider has been deprecated. 
org.hibernate.type.CharBooleanType
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 
org.hibernate.ejb.CurrentEntityManagerImpl
          no longer used since getEntityManager is no longer here 
org.hibernate.criterion.Expression
          Use Restrictions. 
org.hibernate.cfg.search.HibernateSearchEventListenerRegister
          as of release 3.4.0.CR2, replaced by Hibernate Search's org.hibernate.search.cfg.EventListenerRegister 
org.hibernate.type.ImmutableType
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 
org.hibernate.bytecode.cglib.InstantiationOptimizerAdapter
          Per HHH-5451 support for cglib as a bytecode provider has been deprecated. 
org.hibernate.tool.instrument.cglib.InstrumentTask
          Per HHH-5451 support for cglib as a bytecode provider has been deprecated; use InstrumentTask instead 
org.hibernate.cache.jbc2.JBossCacheRegionFactory
          use JBossCacheRegionFactory 
org.hibernate.cache.jbc2.JndiMultiplexedJBossCacheRegionFactory
          use JndiMultiplexedJBossCacheRegionFactory 
org.hibernate.cache.jbc2.JndiSharedJBossCacheRegionFactory
          use JndiSharedJBossCacheRegionFactory 
org.hibernate.cache.jbc2.MultiplexedJBossCacheRegionFactory
          use MultiplexedJBossCacheRegionFactory 
org.hibernate.type.MutableType
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 
org.hibernate.type.NullableType
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 
org.hibernate.dialect.Oracle9Dialect
          Use either Oracle9iDialect or Oracle10gDialect instead 
org.hibernate.dialect.OracleDialect
          Use Oracle8iDialect instead. 
org.hibernate.type.PrimitiveByteArrayBlobType
          replaced by Hibernate Core's MaterializedBlobType 
org.hibernate.bytecode.cglib.ProxyFactoryFactoryImpl
          Per HHH-5451 support for cglib as a bytecode provider has been deprecated. 
org.hibernate.lob.ReaderInputStream
          Should not be used anymore. 
org.hibernate.bytecode.cglib.ReflectionOptimizerImpl
          Per HHH-5451 support for cglib as a bytecode provider has been deprecated. 
org.hibernate.proxy.pojo.cglib.SerializableProxy
          Per HHH-5451 support for cglib as a bytecode provider has been deprecated. 
org.hibernate.cache.jbc2.SharedJBossCacheRegionFactory
          use SharedJBossCacheRegionFactory 
org.hibernate.type.StringClobType
          replaced by Hibernate Core's MaterializedClobType 
org.hibernate.dialect.SybaseDialect
          use AbstractTransactSQLDialect, SybaseASE15Dialect or SQLServerDialect instead depending on need. 
 

Deprecated Annotation Types
org.hibernate.annotations.CollectionOfElements
          use @ElementCollection 
org.hibernate.annotations.MapKey
          Use MapKeyColumn This is the default behavior for Map properties marked as @OneToMany, @ManyToMany or @ElementCollection 
org.hibernate.annotations.MapKeyManyToMany
          Use MapKeyJoinColumn MapKeyJoinColumns This is the default behavior for Map properties marked as @OneToMany, @ManyToMany or @ElementCollection 
 

Deprecated Fields
org.hibernate.Hibernate.BIG_DECIMAL
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 
org.hibernate.Hibernate.BIG_INTEGER
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 
org.hibernate.Hibernate.BINARY
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 
org.hibernate.Hibernate.BLOB
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 
org.hibernate.Hibernate.BOOLEAN
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 
org.hibernate.Hibernate.BYTE
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 
org.hibernate.Hibernate.CALENDAR
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 
org.hibernate.Hibernate.CALENDAR_DATE
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 
org.hibernate.Hibernate.CHAR_ARRAY
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 
org.hibernate.Hibernate.CHARACTER
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 
org.hibernate.Hibernate.CHARACTER_ARRAY
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 
org.hibernate.Hibernate.CLASS
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 
org.hibernate.Hibernate.CLOB
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 
org.hibernate.Hibernate.CURRENCY
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 
org.hibernate.Hibernate.DATE
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 
org.hibernate.Hibernate.DOUBLE
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 
org.hibernate.FetchMode.EAGER
          use FetchMode.JOIN 
org.hibernate.Hibernate.FLOAT
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 
org.hibernate.LockMode.FORCE
          instead use PESSIMISTIC_FORCE_INCREMENT 
org.hibernate.ejb.QueryHints.HINT_TIMEOUT
          HINT_TIMEOUT (org.hibernate.timeout), instead use SPEC_HINT_TIMEOUT (javax.persistence.query.timeout) 
org.hibernate.Hibernate.IMAGE
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 
org.hibernate.Hibernate.INTEGER
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 
org.hibernate.FetchMode.LAZY
          use FetchMode.SELECT 
org.hibernate.Hibernate.LOCALE
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 
org.hibernate.Hibernate.LONG
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 
org.hibernate.Hibernate.MATERIALIZED_BLOB
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 
org.hibernate.Hibernate.MATERIALIZED_CLOB
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 
org.hibernate.FlushMode.NEVER
          use FlushMode.MANUAL instead. 
org.hibernate.Hibernate.OBJECT
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 
org.hibernate.Hibernate.SERIALIZABLE
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 
org.hibernate.Hibernate.SHORT
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 
org.hibernate.Hibernate.STRING
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 
org.hibernate.Hibernate.TEXT
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 
org.hibernate.Hibernate.TIME
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 
org.hibernate.Hibernate.TIMESTAMP
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 
org.hibernate.Hibernate.TIMEZONE
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 
org.hibernate.Hibernate.TRUE_FALSE
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 
org.hibernate.LockMode.UPGRADE
          instead use PESSIMISTIC_WRITE 
org.hibernate.Hibernate.WRAPPER_BINARY
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 
org.hibernate.Hibernate.YES_NO
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 
 

Deprecated Methods
org.hibernate.cfg.ExtendedMappings.addUniqueConstraints(Table, List)
          Use ExtendedMappings.addUniqueConstraintHolders(org.hibernate.mapping.Table, java.util.List) instead 
org.hibernate.Hibernate.any(Type, Type)
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5182 
org.hibernate.type.TypeFactory.assemble(Serializable[], Type[], SessionImplementor, Object)
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 
org.hibernate.type.TypeFactory.basic(String)
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 
org.hibernate.type.TypeFactory.beforeAssemble(Serializable[], Type[], SessionImplementor)
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 
org.hibernate.id.enhanced.OptimizerFactory.buildOptimizer(String, Class, int)
          Use OptimizerFactory.buildOptimizer(String, Class, int, long) instead 
org.hibernate.cfg.annotations.TableBinder.buildUniqueConstraints(UniqueConstraint[])
          Use TableBinder.buildUniqueConstraintHolders(javax.persistence.UniqueConstraint[]) instead 
org.hibernate.jdbc.Batcher.closeConnection(Connection)
          Obtain connections from ConnectionProvider instead 
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.Hibernate.createBlob(byte[])
          Use Hibernate.createBlob(byte[], Session) instead 
org.hibernate.Hibernate.createBlob(InputStream)
          Use Hibernate.createBlob(InputStream, long, Session) instead 
org.hibernate.Hibernate.createBlob(InputStream, int)
          Use Hibernate.createBlob(InputStream, long, Session) instead 
org.hibernate.Hibernate.createBlob(InputStream, long)
          Use Hibernate.createBlob(InputStream, long, Session) instead 
org.hibernate.Hibernate.createClob(Reader, int)
          Use Hibernate.createClob(Reader,long,Session) instead 
org.hibernate.Hibernate.createClob(Reader, long)
          Use Hibernate.createClob(Reader,long,Session) instead 
org.hibernate.Hibernate.createClob(String)
          Use Hibernate.createClob(String, Session) instead 
org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory()
            
org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(Map)
            
org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Map)
          use the Java Persistence API 
org.hibernate.id.IdentifierGeneratorHelper.createNumber(long, Class)
          Use the holders instead. 
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.Hibernate.custom(Class)
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5182 
org.hibernate.Hibernate.custom(Class, Properties)
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5182 
org.hibernate.Hibernate.custom(Class, String[], String[])
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5182 
org.hibernate.type.TypeFactory.customCollection(String, String, String, boolean)
          Use TypeFactory.customCollection(String, java.util.Properties, String, String, boolean) instead 
org.hibernate.type.TypeFactory.deepCopy(Object[], Type[], boolean[], Object[], SessionImplementor)
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 
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.type.TypeFactory.disassemble(Object[], Type[], boolean[], SessionImplementor, Object)
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 
org.hibernate.cfg.search.HibernateSearchEventListenerRegister.enableHibernateSearch(EventListeners, Properties)
          as of release 3.4.0.CR2, replaced by Hibernate Search's org.hibernate.search.cfg.EventListenerRegister#enableHibernateSearch(EventListeners, Properties) 
org.hibernate.Hibernate.entity(Class)
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5182 
org.hibernate.Hibernate.entity(String)
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5182 
org.hibernate.SessionFactory.evict(Class)
          Use Cache.evictEntityRegion(Class) accessed through SessionFactory.getCache() instead. 
org.hibernate.SessionFactory.evict(Class, Serializable)
          Use Cache.containsEntity(Class, Serializable) accessed through SessionFactory.getCache() instead. 
org.hibernate.SessionFactory.evictCollection(String)
          Use Cache.evictCollectionRegion(String) accessed through SessionFactory.getCache() instead. 
org.hibernate.SessionFactory.evictCollection(String, Serializable)
          Use Cache.evictCollection(String,Serializable) accessed through SessionFactory.getCache() instead. 
org.hibernate.SessionFactory.evictEntity(String)
          Use Cache.evictEntityRegion(String) accessed through SessionFactory.getCache() instead. 
org.hibernate.SessionFactory.evictEntity(String, Serializable)
          Use Cache.evictEntity(String,Serializable) accessed through SessionFactory.getCache() instead. 
org.hibernate.SessionFactory.evictQueries()
          Use Cache.evictQueryRegions() accessed through SessionFactory.getCache() instead. 
org.hibernate.SessionFactory.evictQueries(String)
          Use Cache.evictQueryRegion(String) accessed through SessionFactory.getCache() instead. 
org.hibernate.cfg.annotations.TableBinder.fillTable(String, String, String, String, boolean, List, String, Table, ExtendedMappings)
          Use TableBinder.buildAndFillTable(java.lang.String, java.lang.String, org.hibernate.cfg.ObjectNameSource, org.hibernate.cfg.ObjectNameNormalizer.NamingStrategyHelper, boolean, java.util.List, java.lang.String, org.hibernate.mapping.Table, org.hibernate.cfg.ExtendedMappings, java.lang.String) instead. 
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.type.TypeFactory.findDirty(StandardProperty[], Object[], Object[], boolean[][], boolean, SessionImplementor)
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 
org.hibernate.type.TypeFactory.findModified(StandardProperty[], Object[], Object[], boolean[][], boolean, SessionImplementor)
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 
org.hibernate.Session.get(Class, Serializable, LockMode)
          LockMode parameter should be replaced with LockOptions 
org.hibernate.type.ClobType.get(ResultSet, String)
          Use ClobType.get(ResultSet,String,LobCreator) instead 
org.hibernate.type.BlobType.get(ResultSet, String)
          Use BlobType.get(ResultSet,String,LobCreator) instead 
org.hibernate.Session.get(String, Serializable, LockMode)
          LockMode parameter should be replaced with LockOptions 
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.engine.SessionImplementor.getEnabledFilters()
          use #getLoadQueryInfluencers instead 
org.hibernate.engine.SessionImplementor.getFetchProfile()
          use #getLoadQueryInfluencers instead 
org.hibernate.engine.SessionImplementor.getFilterParameterType(String)
          use #getLoadQueryInfluencers instead 
org.hibernate.engine.SessionImplementor.getFilterParameterValue(String)
          use #getLoadQueryInfluencers instead 
org.hibernate.tuple.entity.EntityTuplizer.getIdentifier(Object)
          Use EntityTuplizer.getIdentifier(Object,SessionImplementor) instead. 
org.hibernate.metadata.ClassMetadata.getIdentifier(Object, EntityMode)
          Use ClassMetadata.getIdentifier(Object,SessionImplementor) instead 
org.hibernate.persister.entity.EntityPersister.getIdentifier(Object, EntityMode)
          Use EntityPersister.getIdentifier(Object,SessionImplementor) instead 
org.hibernate.engine.Mapping.getIdentifierGeneratorFactory()
          temporary solution 
org.hibernate.engine.jdbc.JdbcSupport.getLobCreator()
          Use JdbcSupport.getLobCreator(LobCreationContext) instead. 
org.hibernate.sql.Select.getLockMode()
          Instead use getLockOptions 
org.hibernate.dialect.function.SQLFunction.getReturnType(Type, Mapping)
          See http://opensource.atlassian.com/projects/hibernate/browse/HHH-5212 
org.hibernate.event.AbstractPreDatabaseOperationEvent.getSource()
          Use AbstractEvent.getSession() instead 
org.hibernate.cfg.ExtendedMappings.getTableUniqueConstraints()
          Use ExtendedMappings.getUniqueConstraintHoldersByTable() instead 
org.hibernate.type.TypeFactory.heuristicType(String)
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 
org.hibernate.type.TypeFactory.heuristicType(String, Properties)
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 
org.hibernate.tuple.entity.EntityTuplizer.instantiate(Serializable)
          Use EntityTuplizer.instantiate(Serializable, SessionImplementor) instead. 
org.hibernate.metadata.ClassMetadata.instantiate(Serializable, EntityMode)
          Use ClassMetadata.instantiate(Serializable, SessionImplementor) instead 
org.hibernate.persister.entity.EntityPersister.instantiate(Serializable, EntityMode)
          Use EntityPersister.instantiate(Serializable, SessionImplementor) 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.load(Class, Serializable, LockMode)
          LockMode parameter should be replaced with LockOptions 
org.hibernate.loader.entity.UniqueEntityLoader.load(Serializable, Object, SessionImplementor)
          use UniqueEntityLoader.load(java.io.Serializable, Object, SessionImplementor, LockOptions) instead. 
org.hibernate.Session.load(String, Serializable, LockMode)
          LockMode parameter should be replaced with LockOptions 
org.hibernate.Session.lock(Object, LockMode)
          instead call buildLockRequest(LockMode).lock(object) 
org.hibernate.Session.lock(String, Object, LockMode)
          instead call buildLockRequest(LockMode).lock(entityName, object) 
org.hibernate.type.TypeFactory.manyToOne(String, String, boolean, boolean, boolean, boolean)
          Use TypeFactory.manyToOne(String, String, boolean, boolean, boolean, boolean, boolean) 
org.hibernate.jdbc.Batcher.openConnection()
          Obtain connections from ConnectionProvider instead 
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.Session.refresh(Object, LockMode)
          LockMode parameter should be replaced with LockOptions 
org.hibernate.dialect.function.SQLFunction.render(List, SessionFactoryImplementor)
          See http://opensource.atlassian.com/projects/hibernate/browse/HHH-5212 
org.hibernate.sql.Template.renderWhereStringTemplate(String, String, Dialect)
          Only intended for annotations usage; use Template.renderWhereStringTemplate(String, String, Dialect, SQLFunctionRegistry) instead 
org.hibernate.type.TypeFactory.replace(Object[], Object[], Type[], SessionImplementor, Object, Map)
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 
org.hibernate.type.TypeFactory.replace(Object[], Object[], Type[], SessionImplementor, Object, Map, ForeignKeyDirection)
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 
org.hibernate.type.TypeFactory.replaceAssociations(Object[], Object[], Type[], SessionImplementor, Object, Map, ForeignKeyDirection)
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 
org.hibernate.tuple.entity.EntityTuplizer.resetIdentifier(Object, Serializable, Object)
          Use EntityTuplizer.resetIdentifier(Object, Serializable, Object, SessionImplementor) instead 
org.hibernate.persister.entity.EntityPersister.resetIdentifier(Object, Serializable, Object, EntityMode)
          Use EntityPersister.resetIdentifier(Object, Serializable, Object, SessionImplementor) 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.Hibernate.serializable(Class)
          see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 
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.id.factory.IdentifierGeneratorFactory.setDialect(Dialect)
          The intention is that Dialect should be required to be specified up-front and it would then get ctor injected. 
org.hibernate.engine.SessionImplementor.setFetchProfile(String)
          use #getLoadQueryInfluencers instead 
org.hibernate.ejb.packaging.PersistenceMetadata.setHbmfiles(List)
          use getHbmfiles() rather 
org.hibernate.tuple.entity.EntityTuplizer.setIdentifier(Object, Serializable)
          Use EntityTuplizer.setIdentifier(Object, Serializable, SessionImplementor) instead. 
org.hibernate.metadata.ClassMetadata.setIdentifier(Object, Serializable, EntityMode)
          Use ClassMetadata.setIdentifier(Object, Serializable, SessionImplementor) instead. 
org.hibernate.persister.entity.EntityPersister.setIdentifier(Object, Serializable, EntityMode)
          Use EntityPersister.setIdentifier(Object, Serializable, SessionImplementor) instead. 
org.hibernate.envers.query.impl.AbstractAuditQuery.setLockMode(LockMode)
          Instead use setLockOptions 
org.hibernate.sql.Select.setLockMode(LockMode)
          Instead use setLockOptions 
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.type.ManyToOneType(String, String, boolean, boolean, boolean, boolean)
          use ManyToOneType.ManyToOneType(String, String, boolean, boolean, boolean, boolean, boolean) 
org.hibernate.engine.NamedSQLQueryDefinition(String, String, List, boolean, String, Integer, Integer, FlushMode, Map, boolean)
            
org.hibernate.tool.hbm2ddl.SchemaExport(Configuration, Properties)
          properties may be specified via the Configuration object 
 

Deprecated Enum Constants
org.hibernate.annotations.CascadeType.DELETE_ORPHAN
          use @OneToOne(orphanRemoval=true) or @OneToMany(orphanRemoval=true) 
org.hibernate.annotations.CascadeType.EVICT
          use javax.persistence.CascadeType.DETACH 
org.hibernate.annotations.FlushModeType.NEVER
          use MANUAL, will be removed in a subsequent release 
 



Copyright © 2001-2010 Red Hat, Inc. All Rights Reserved.