This document is a work in progress as we develop 4.0
- Initial move to ServiceRegistry. For now, see design wikis or sources for more information. Not all "services" have been migrated to this model yet. The main ones (JDBC and transaction stuff) as well as lowever level one (classloading and such) have been migrated. The rest will be moved during Alpha2 development.
- In an initial push toward osgi we started splitting up packages a little bit differently in this release.
- The reason is to identify classes which are intended as
- public API, which are fully expected to be used in application code.
- internal implementation details, which are only intended for Hibernate use.
- SPI contracts, whch define
- extension contracts
- contracts with Hibernate internals exposed to these extensions
- This will potentially lead to some packaging changes needed in user code:
- org.hibernate.dialect.resolver.DialectResolver -> org.hibernate.service.jdbc.dialect.spi.DialectResolver
- Deprecated methods that have been removed:
- References to org.hibernate.type.AbstractSingleColumnStandardBasicType and org.hibernate.type.SingleColumnType methods should be changed as indicated:
- nullSafeGet(ResultSet rs, String name) should be changed to
nullSafeGet(ResultSet rs, String name, SessionImplementor session)
- get(ResultSet rs, String name) should be changed to
get(ResultSet rs, String name, SessionImplementor session)
- nullSafeSet(PreparedStatement st, T value, int index) should be changed to nullSafeSet(PreparedStatement st, Object value, int index, SessionImplementor session)
- set(PreparedStatement st, T value, int index) should be changed to set(PreparedStatement st, T value, int index, SessionImplementor session)
- References to org.hibernate.usertype.UserType methods should be changed as indicated:
- nullSafeGet(ResultSet rs, String[] names, Object owner) should be changed to
nullSafeGet(ResultSet rs, String[] names, SessionImplementor session, Object owner)
- nullSafeSet(PreparedStatement st, Object value, int index) should be changed to nullSafeSet(PreparedStatement st, Object value, int index, SessionImplementor session)
- Session.reconnect() - manual disconection and reconnection is now only supported for user-supplied-connection scenarios (JDBC Connection passed in while opening the Session)
- Session.connection() - use Session.doWork(), Session.doReturningWork() or Session.sessionWithOptions()...openSession() as replacement depending on need
- Most of the overloaded SessionFactory.openSession methods. Use SessionFactory.withOptions()...openSession() instead
- Deprecated classes/interfaces that have been removed:
- org.hibernate.classic.Session
- org.hibernate.classic.Validatable
- org.hibernate.classic.ValidationException
- org.hibernate.jdbc.BatcherFactory, Batcher, and their implementations have been replaced by org.hibernate.engine.jdbc.batch.spi.BatchBuilder and Batch, with default implementations in org.hibernate.engine.jdbc.batch.internal. You can override the default BatchBuilder by defining the "hibernate.jdbc.batch.builder" property as the name of a BatchBuilder implementation, or by providing a BatchBuilder in a custom ServiceRegistry.
- hibernate.cfg.xml no longer supported as means of specifying listeners. New approach invloves using an org.hibernate.integrator.spi.Integrator which works based on "service discovery".
Note that MetadataSources and classes in org.hibernate.metamodel in general and unfinished and should not be used by users. The current target is to finish this work for Hibernate Core 4.1
相关推荐
AutoCAD 2000 Migration Guide
Samsung_Data_Migration_Setup_4.0.0.18.exe
OpenNI_Migration_Guide
:bangbang: To migrate from Swagger Codegen to OpenAPI Generator, please refer to the migration guide :bangbang: :notebook_with_decorative_cover: For more information, please refer to the Wiki page and...
Junit5 migration guide
websphere mq v7 migration guide 很好的工具
VR-Forces Migration Guide
MigrationTools:将计算机的NSS配置迁移到LDAP
TMS320DM365 DM368 Migration Guide
Yii 2 依赖迁移这是一个小的... "post-install-cmd": "ivanovyordan\\migration\\Migration::migrate","post-update-cmd": "ivanovyordan\\migration\\Migration::migrate"用法为您要重用的所有模块创建包。 为需要迁移
Microsoft Enterprise Library 5.0 Migration Guide
OMAMP35X To AM37X hardware Migration Guide,OMAMP35X To AM37X hardware Migration Guide
Java Platform Migration Guide. E文的
CC2430 to CC2530 Migration Guide_swra287
Postgres_Plus_Advanced_Server_Migration_Guide_v1.0_CN[1]
e12509-Oracle Application Express Application Migration Guide Release 3.2-76
TFS to VSTS Cloud Migration Guide. 微软的代码管理工具TFS 和 VSTS. 从TFS migrate到 VSTS的过程。
Silverlight Migration Guide- Upgrading Your Windows Media Player Online Experiences
BusinessObjects 6.x to XI Release 2 Migration Guide是英文版本的,中文版本可以找我要
TMS320DM6446 to TMS320DM6437 Migration Guide