简体   繁体   English

Hibernate 从版本 3.0 升级到 3.6

[英]Upgrade of Hibernate from version 3.0 to 3.6

I'm working on a project which uses Hibernate 3.0 (released in 2005), though the project itself is only 4 months old.我正在开发一个使用Hibernate 3.0 (2005 年发布)的项目,尽管该项目本身只有 4 个月大。 The catch is we have already written millions of lines of code.问题是我们已经编写了数百万行代码。 We realized we are using Hibernate 3.0 only yesterday and now we badly want to move to the latest stable release 3.6.6 .昨天我们才意识到我们正在使用Hibernate 3.0 ,现在我们非常想迁移到最新的稳定版本3.6.6

So I want to know:所以我想知道:

  • Will there be a lot of changes in the way we map hbm files?(and properties file)我们map hbm文件的方式会有很多变化吗?(和属性文件)
  • Are we likely to get major improvement in performance?(currently we are having some performance issues due to Hibernate's badly formed queries)我们有可能在性能上获得重大改进吗?(由于 Hibernate 的查询格式错误,目前我们遇到了一些性能问题)
  • Will there be a lot of changes in the way we write HQL?(we are using HQL heavily)我们编写 HQL 的方式会不会有很多变化?(我们大量使用 HQL)

Appreciate your help.感谢你的帮助。

I think you should read Hibernate3 Migration Guides from 3.0 step by step up to 3.6 Hibernate我认为您应该逐步阅读从 3.0 到 3.6 Hibernate 的Hibernate3 迁移指南

And here is the quick search in the hibernate changelog about the improvement and path on the performance from 3.0 to 3.6这是hibernate 变更日志中关于从 3.0 到 3.6 的性能改进和路径的快速搜索

  • [HHH-5823] - Poor multithread performance in UpdateTimestampsCache class [HHH-5823] - UpdateTimestampsCache class 中的多线程性能不佳
  • [HHH-5824] - Poor multithread performance in SessionFactoryImpl.getQueryCache method [HHH-5824] - SessionFactoryImpl.getQueryCache 方法中的多线程性能不佳
  • [HHH-3860] - Cascading performance problems when session contains many entities [HHH-3860] - 当 session 包含许多实体时出现级联性能问题
  • [HHH-3357] - improve performance of session.clear() [HHH-3357] - 提高 session.clear() 的性能
  • [HHH-2553] - New LoadContexts Implementation causing possible performance degradation [HHH-2553] - 新的 LoadContexts 实现可能导致性能下降
  • [HHH-2957] - ActionQueue Insertion sort performance degrades exponentially (Jay Erb) [HHH-2957] - ActionQueue 插入排序性能呈指数级下降 (Jay Erb)
  • [HHH-2553] - New LoadContexts Implementation causing possible performance degradation [HHH-2553] - 新的 LoadContexts 实现可能导致性能下降
  • [HHH-2229] - Performance issue with fix for HHH-1293, CGLIBLazyInitializer may be slower for certain Java classes [HHH-2229] - 修复 HHH-1293 的性能问题,CGLIBLazyInitializer 对于某些 Java 类可能会更慢
  • [HHH-2023] - performance optimization of JTATransactionFactory.isTransactionInProgress() [HHH-2023] - JTATransactionFactory.isTransactionInProgress() 的性能优化
  • [HHH-864] - Use QUERY_CACHE for sessions with filters to improve performance [HHH-864] - 对带有过滤器的会话使用 QUERY_CACHE 以提高性能
  • [HHH-525] - cglib related startup performance [HHH-525] - cglib 相关的启动性能

You can search in the Hibernate JIRA for each item 's details.Good luck您可以在Hibernate JIRA中搜索每个项目的详细信息。祝你好运

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用逆向工程升级到Hibernate 3.6错误 - Upgrade to Hibernate 3.6 errors with reverse engineering 在JBOSS中升级Hibernate版本 - Upgrade Hibernate version in JBOSS 在Maven依赖项从Spring 3.0更新到3.1.1,然后将Hibernate 3.6更新到4.0之后。 许多错误即将到来 - After maven dependency update from spring 3.0 to 3.1.1 and hibernate 3.6 to 4.0 . Lots of error are coming 缓存不适用于Spring 3.0,Hibernate 3.6和EhCache 2.6.6 - Caching not working with Spring 3.0, Hibernate 3.6, and EhCache 2.6.6 从Hibernate 3.6更新到Hibernate 4.0 - Updating from Hibernate 3.6 to Hibernate 4.0 在jboss 6.0.0 AS上将Hibernate 3.6升级到hibernate 4.3.6,获取java.lang.NoClassDefFoundError:org / hibernate / classic / Session - Upgrade Hibernate 3.6 to hibernate 4.3.6 on jboss 6.0.0 AS getting java.lang.NoClassDefFoundError: org/hibernate/classic/Session Java 7和Hibernate 3.0与哪个版本的Drools兼容? - What version of Drools are Java 7 and Hibernate 3.0 compatible with? 从休眠3升级到休眠5后,InvalidDataAccessApiUsageException - InvalidDataAccessApiUsageException after upgrade from hibernate 3 to hibernate 5 从 Hibernate 3.6 迁移到 4.2:Hibernate 自动生成外键 - Migrating from Hibernate 3.6 to 4.2: Hibernate auto generates foreign keys 将Lucene从3.6升级到4.1后,不同的API和SegmentInfos常量 - Different API & SegmentInfos constants after upgrade Lucene from 3.6 to 4.1
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM