Deprecated Methods |
org.hibernate.cfg.Mappings.addUniqueConstraints(Table, List)
Use Mappings.addUniqueConstraintHolders(org.hibernate.mapping.Table, java.util.List) instead |
org.hibernate.SharedSessionBuilder.autoClose()
For same reasons as SessionBuilder.autoClose(boolean) was deprecated. However, shared
session builders can use SharedSessionBuilder.autoClose(boolean) since they do not "inherit" the owner. |
org.hibernate.SessionBuilder.autoClose(boolean)
Only integrations can specify autoClosing behavior of individual sessions. See
SessionOwner |
org.hibernate.ejb.metamodel.MetamodelImpl.buildMetamodel(Iterator, SessionFactoryImplementor)
use MetamodelImpl.buildMetamodel(java.util.Iterator,org.hibernate.engine.spi.SessionFactoryImplementor,boolean) instead |
org.hibernate.id.enhanced.OptimizerFactory.buildOptimizer(String, Class, int)
Use OptimizerFactory.buildOptimizer(String, Class, int, long) instead |
org.hibernate.cfg.Configuration.buildSessionFactory()
Use Configuration.buildSessionFactory(ServiceRegistry) instead |
org.hibernate.dialect.Dialect.buildSQLExceptionConverter()
Dialect.buildSQLExceptionConversionDelegate() should be
overridden instead. |
org.hibernate.cfg.annotations.TableBinder.buildUniqueConstraints(UniqueConstraint[])
Use TableBinder.buildUniqueConstraintHolders(javax.persistence.UniqueConstraint[]) instead |
org.hibernate.StatelessSession.connection()
just missed when deprecating same method from Session |
org.hibernate.hql.internal.ast.util.ASTUtil.create(ASTFactory, int, String)
silly |
org.hibernate.Criteria.createAlias(String, String, int)
use Criteria.createAlias(String, String, org.hibernate.sql.JoinType) |
org.hibernate.criterion.DetachedCriteria.createAlias(String, String, int)
use DetachedCriteria.createAlias(String, String, JoinType) |
org.hibernate.Criteria.createAlias(String, String, int, Criterion)
use Criteria.createAlias(String, String, JoinType, Criterion) |
org.hibernate.criterion.DetachedCriteria.createAlias(String, String, int, Criterion)
use DetachedCriteria.createAlias(String, String, JoinType, Criterion) |
org.hibernate.Criteria.createCriteria(String, int)
use Criteria.createAlias(String, String, org.hibernate.sql.JoinType) |
org.hibernate.criterion.DetachedCriteria.createCriteria(String, int)
use DetachedCriteria.createCriteria(String, JoinType) |
org.hibernate.Criteria.createCriteria(String, String, int)
use Criteria.createCriteria(String, org.hibernate.sql.JoinType) |
org.hibernate.criterion.DetachedCriteria.createCriteria(String, String, int)
use DetachedCriteria.createCriteria(String, String, JoinType) |
org.hibernate.Criteria.createCriteria(String, String, int, Criterion)
use Criteria.createCriteria(String, String, org.hibernate.sql.JoinType, org.hibernate.criterion.Criterion) |
org.hibernate.criterion.DetachedCriteria.createCriteria(String, String, int, Criterion)
use DetachedCriteria.createCriteria(String, String, JoinType, Criterion) |
org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory()
|
org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Map)
use the Java Persistence API |
org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(Map)
|
org.hibernate.id.IdentifierGeneratorHelper.createNumber(long, Class)
Use the holders instead. |
org.hibernate.type.TypeFactory.custom(Class, Properties, TypeFactory.TypeScope)
Only for use temporary use by Hibernate |
org.hibernate.type.TypeFactory.customComponent(Class, Properties, TypeFactory.TypeScope)
Only for use temporary use by Hibernate |
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, Mappings)
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.Mappings, java.lang.String) instead. |
org.hibernate.Session.get(Class, Serializable, LockMode)
LockMode parameter should be replaced with LockOptions |
org.hibernate.Session.get(String, Serializable, LockMode)
LockMode parameter should be replaced with LockOptions |
org.hibernate.hql.internal.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.internal.ast.tree.ConstructorNode.getDataType()
(tell clover to ignore this method) |
org.hibernate.engine.spi.SessionImplementor.getEnabledFilters()
use #getLoadQueryInfluencers instead |
org.hibernate.type.CharBooleanType.getFalseString()
Pass the true/false values into constructor instead. |
org.hibernate.metamodel.binding.AssociationAttributeBinding.getFetchMode()
|
org.hibernate.engine.spi.SessionImplementor.getFetchProfile()
use #getLoadQueryInfluencers instead |
org.hibernate.engine.spi.SessionImplementor.getFilterParameterType(String)
use #getLoadQueryInfluencers instead |
org.hibernate.engine.spi.SessionImplementor.getFilterParameterValue(String)
use #getLoadQueryInfluencers instead |
org.hibernate.metadata.ClassMetadata.getIdentifier(Object)
Use ClassMetadata.getIdentifier(Object,SessionImplementor) instead |
org.hibernate.tuple.entity.EntityTuplizer.getIdentifier(Object)
Use EntityTuplizer.getIdentifier(Object,SessionImplementor) instead. |
org.hibernate.persister.entity.EntityPersister.getIdentifier(Object)
Use EntityPersister.getIdentifier(Object,SessionImplementor) instead |
org.hibernate.engine.spi.Mapping.getIdentifierGeneratorFactory()
temporary solution |
org.hibernate.sql.Select.getLockMode()
Instead use getLockOptions |
org.hibernate.event.spi.AbstractPreDatabaseOperationEvent.getSource()
Use AbstractEvent.getSession() instead |
org.hibernate.cfg.Mappings.getTableUniqueConstraints()
Use Mappings.getUniqueConstraintHoldersByTable() instead |
org.hibernate.type.CharBooleanType.getTrueString()
Pass the true/false values into constructor instead. |
org.hibernate.tuple.entity.EntityTuplizer.instantiate(Serializable)
Use EntityTuplizer.instantiate(Serializable, SessionImplementor) instead. |
org.hibernate.cfg.Mappings.iterateAuxliaryDatabaseObjects()
To fix misspelling; use Mappings.iterateAuxiliaryDatabaseObjects() instead |
org.hibernate.cfg.Mappings.iterateAuxliaryDatabaseObjectsInReverse()
To fix misspelling; use Mappings.iterateAuxiliaryDatabaseObjectsInReverse() instead |
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.Session.refresh(Object, LockMode)
LockMode parameter should be replaced with LockOptions |
org.hibernate.sql.Template.renderOrderByStringTemplate(String, Dialect, SQLFunctionRegistry)
Use Template.renderOrderByStringTemplate(String,ColumnMapper,SessionFactoryImplementor,Dialect,SQLFunctionRegistry) instead |
org.hibernate.sql.Template.renderWhereStringTemplate(String, String, Dialect)
Only intended for annotations usage; use Template.renderWhereStringTemplate(String, String, Dialect, SQLFunctionRegistry) instead |
org.hibernate.tuple.entity.EntityTuplizer.resetIdentifier(Object, Serializable, Object)
Use EntityTuplizer.resetIdentifier(Object, Serializable, Object, SessionImplementor) instead |
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.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.spi.SessionImplementor.setFetchProfile(String)
use SessionImplementor.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.sql.Select.setLockMode(LockMode)
Instead use setLockOptions |
org.hibernate.envers.query.impl.AbstractAuditQuery.setLockMode(LockMode)
Instead use setLockOptions |
org.hibernate.mapping.Collection.setOwner(PersistentClass)
Inject the owner into constructor. |
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) |