Deprecated API
Contents
- Interfaces
- Classes
- Annotation Types
- Fields
- Methods
- Constructors
- Enum Constants
- Annotation Type Elements
-
Deprecated Interfaces
-
Deprecated ClassesClassDescriptionPer HHH-5451 support for cglib as a bytecode provider has been deprecated.Per HHH-5451 support for cglib as a bytecode provider has been deprecated.Per HHH-5451 support for cglib as a bytecode provider has been deprecated.Per HHH-5451 support for cglib as a bytecode provider has been deprecated.Per HHH-5451 support for cglib as a bytecode provider has been deprecated.Per HHH-5451 support for cglib as a bytecode provider has been deprecated.All functionality has been moved to
ConfigurationUseVersioninsteadas of release 3.4.0.CR2, replaced by Hibernate Search'sinvalid reference
org.hibernate.search.cfg.EventListenerRegisterUse Restrictions.Use either Oracle9iDialect or Oracle10gDialect insteadUse Oracle8iDialect instead.Should not be used anymore.Per HHH-5451 support for cglib as a bytecode provider has been deprecated.Per HHH-5451 support for cglib as a bytecode provider has been deprecated.Per HHH-5451 support for cglib as a bytecode provider has been deprecated.UseConcurrentStatisticsImplinsteadPer HHH-5451 support for cglib as a bytecode provider has been deprecated; useInstrumentTaskinsteadUse theAbstractStandardBasicTypeapproach insteadUse theAbstractStandardBasicTypeapproach insteadUse theAbstractStandardBasicTypeapproach insteadUse theAbstractStandardBasicTypeapproach insteadreplaced byWrappedMaterializedBlobTypeUse theAbstractStandardBasicTypeapproach insteadUse theAbstractStandardBasicTypeapproach insteadUse theAbstractStandardBasicTypeapproach insteadUse theAbstractStandardBasicTypeapproach insteadreplaced byMaterializedBlobTypereplaced byMaterializedClobType
-
Deprecated Annotation TypesAnnotation TypeDescriptionuse @ElementCollectionuse
DiscriminatorOptionsinsteadUseMapKeyColumnThis is the default behavior for Map properties marked as @OneToMany, @ManyToMany or @ElementCollectionUseMapKeyJoinColumnMapKeyJoinColumnsThis is the default behavior for Map properties marked as @OneToMany, @ManyToMany or @ElementCollection
-
Deprecated FieldsFieldDescriptionuse FetchMode.JOINuse FetchMode.SELECTuse
FlushMode.MANUALinstead.UseStandardBasicTypes.BIG_DECIMALinstead.UseStandardBasicTypes.BIG_INTEGERinstead.UseStandardBasicTypes.BINARYinstead.UseStandardBasicTypes.BLOBinstead.UseStandardBasicTypes.BOOLEANinstead.UseStandardBasicTypes.BYTEinstead.UseStandardBasicTypes.CALENDARinstead.UseStandardBasicTypes.CALENDAR_DATEinstead.UseStandardBasicTypes.CHAR_ARRAYinstead.UseStandardBasicTypes.CHARACTERinstead.UseStandardBasicTypes.CHARACTER_ARRAYinstead.UseStandardBasicTypes.CHARACTERS_CLOBinstead.UseStandardBasicTypes.CLASSinstead.UseStandardBasicTypes.CLOBinstead.UseStandardBasicTypes.CURRENCYinstead.UseStandardBasicTypes.DATEinstead.UseStandardBasicTypes.DOUBLEinstead.UseStandardBasicTypes.FLOATinstead.UseStandardBasicTypes.IMAGEinstead.UseStandardBasicTypes.INTEGERinstead.UseStandardBasicTypes.LOCALEinstead.UseStandardBasicTypes.LONGinstead.UseStandardBasicTypes.MATERIALIZED_BLOBinstead.UseStandardBasicTypes.MATERIALIZED_CLOBinstead.UseObjectType.INSTANCEinstead.UseStandardBasicTypes.SERIALIZABLEinstead.UseStandardBasicTypes.SHORTinstead.UseStandardBasicTypes.STRINGinstead.UseStandardBasicTypes.TEXTinstead.UseStandardBasicTypes.TIMEinstead.UseStandardBasicTypes.TIMESTAMPinstead.UseStandardBasicTypes.TIMEZONEinstead.UseStandardBasicTypes.TRUE_FALSEinstead.UseStandardBasicTypes.WRAPPER_BINARYinstead.UseStandardBasicTypes.WRAPPER_CHARACTERS_CLOBinstead.UseStandardBasicTypes.WRAPPER_MATERIALIZED_BLOBinstead.UseStandardBasicTypes.YES_NOinstead.instead use PESSIMISTIC_FORCE_INCREMENTinstead use PESSIMISTIC_WRITE
-
Deprecated MethodsMethodDescriptionuse
ImmutableStarting with 3.3 Hibernate requires JDK 1.4 or higherStarting with 3.3 Hibernate requires JDK 1.4 or higherStarting with 3.3 Hibernate requires JDK 1.4 or higherUseMappings.getUniqueConstraintHoldersByTable()insteadTo fix misspelling; useMappings.iterateAuxiliaryDatabaseObjects()insteadTo fix misspelling; useMappings.iterateAuxiliaryDatabaseObjectsInReverse()insteadas of release 3.4.0.CR2, replaced by Hibernate Search'sinvalid reference
org.hibernate.search.cfg.EventListenerRegister#enableHibernateSearch(EventListeners, Properties)useSQLQuery.addRoot(java.lang.String, java.lang.String)orSQLQuery.addEntity(java.lang.String)variants instead to define the aliases/classesuseSQLQuery.addRoot(java.lang.String, java.lang.String)orSQLQuery.addEntity(java.lang.String)variants instead to define the alias/classconsider using HQL delete statementsconsider using HQL delete statementsconsider using HQL delete statementsuseSession.createFilter(Object, String).setXYZ.Query.list()useSession.createFilter(Object, String).setXYZ.Query.list()declare identifier properties for all classesdeclare identifier properties for all classeswith no replacementwith no replacementdeclare identifier properties for all classesdeclare identifier properties for all classesUseJdbcSupport.getLobCreator(LobCreationContext)instead.temporary solutionuse #getLoadQueryInfluencers insteaduse #getLoadQueryInfluencers insteaduse #getLoadQueryInfluencers insteaduse #getLoadQueryInfluencers insteaduse #getLoadQueryInfluencers insteadUseAbstractEvent.getSession()insteadUseLobHelper.createBlob(byte[])instead.With no direct replacement. UseHibernate.createBlob(InputStream,long)instead, passing in the lengthUseLobHelper.createBlob(InputStream, long)instead.UseLobHelper.createBlob(InputStream, long)instead.UseLobHelper.createBlob(InputStream, long)instead.UseLobHelper.createClob(Reader, long)insteadUseLobHelper.createClob(Reader, long)insteadUseLobHelper.createClob(Reader, long)insteadUseLobHelper.createClob(String)insteadUseTypeHelper.custom(java.lang.Class)instead; see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5182UseTypeHelper.custom(java.lang.Class)instead; see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5182UseTypeHelper.custom(java.lang.Class)instead; see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5182UseTypeHelper.entity(java.lang.Class)instead; see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5182UseTypeHelper.entity(java.lang.Class)instead; see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5182UseSerializableType(java.lang.Class<T>)instead.(tell clover to ignore this method)sillyUse #getTokenTypeName insteadThe intention is that Dialect should be required to be specified up-front and it would then get ctor injected.Use theholdersinstead.Obtain connections frominsteadinvalid reference
ConnectionProviderObtain connections frominsteadinvalid reference
ConnectionProviderInject the owner into constructor.(scheduled for removal in 4.x). Replacement depends on need; for doing direct JDBC stuff useSession.doWork(org.hibernate.jdbc.Work); for opening a 'temporary Session' use (TBD).LockMode parameter should be replaced with LockOptionsLockMode parameter should be replaced with LockOptionsLockMode parameter should be replaced with LockOptionsLockMode parameter should be replaced with LockOptionsinstead call buildLockRequest(LockMode).lock(object)instead call buildLockRequest(LockMode).lock(entityName, object)Manual reconnection is only needed in the case of application-supplied connections, in which case theSession.reconnect(java.sql.Connection)for should be used.LockMode parameter should be replaced with LockOptionsUseCache.evictEntityRegion(Class)accessed throughSessionFactory.getCache()instead.UseCache.containsEntity(Class, Serializable)accessed throughSessionFactory.getCache()instead.UseCache.evictCollectionRegion(String)accessed throughSessionFactory.getCache()instead.UseCache.evictCollection(String,Serializable)accessed throughSessionFactory.getCache()instead.UseCache.evictEntityRegion(String)accessed throughSessionFactory.getCache()instead.UseCache.evictEntity(String,Serializable)accessed throughSessionFactory.getCache()instead.UseCache.evictQueryRegions()accessed throughSessionFactory.getCache()instead.UseCache.evictQueryRegion(String)accessed throughSessionFactory.getCache()instead.Instead use getLockOptionsInstead use setLockOptionsOnly intended for annotations usage; useTemplate.renderWhereStringTemplate(String, String, Dialect, SQLFunctionRegistry)insteaduseinvalid reference
org.hibernate.cfg.Environment.HBM2DDL_IMPORT_FILEPass the true/false values into constructor instead.Pass the true/false values into constructor instead.Only for use temporary use byHibernateOnly for use temporary use byHibernateSessionImplementor will be added as an argument in a future version (see HHH-5968)SessionImplementor will be added as an argument in a future version (see HHH-5968)
-
Deprecated ConstructorsConstructorDescriptionproperties may be specified via the Configuration object
-
Deprecated Enum ConstantsEnum ConstantDescriptionuse @OneToOne(orphanRemoval=true) or @OneToMany(orphanRemoval=true)use javax.persistence.CascadeType.DETACHuse MANUAL, will be removed in a subsequent release
-
Deprecated Annotation Type Elements