Hibernate升级:StatisticsService() [英] Hibernate Upgrade : StatisticsService()
问题描述
在替换 .jar
文件和一些弃用的软件包,classes&基本数据类型我仍然收到一些错误,使用 StatisticsService()
&在 org.hibernate.jmx
包中。
错误如下:
1.错误:package org.hibernate.jmx不存在
[javac] import org.hibernate.jmx.StatisticsService;
2.错误:找不到符号
[javac] StatisticsService stats = new StatisticsService(); // MBean实现
是否有其他方法来实现这个或者该包本身已被弃用? p>
解决此错误的另一种方法是什么?
谢谢。
Hibernate StatisticsService 已从4.0弃用,目前没有其他选择。
但根据链接,如果您使用 spring
,你仍然可以使用该服务。
I am upgrading hibernate from 3.6 to 4.3.5.
After replacing the .jar
files and some deprecated packages, classes & also the Basic data types I am still getting some errors with the StatisticsService()
& in org.hibernate.jmx
package.
The errors are following:
1. error: package org.hibernate.jmx does not exist
[javac] import org.hibernate.jmx.StatisticsService;
2. error: cannot find symbol
[javac] StatisticsService stats = new StatisticsService(); // MBean implementation
Is there any other method to implement this OR the package itself is deprecated ?
What is the alternative way to resolve this error ?
Thanks.
Hibernate StatisticsService is deprecated from 4.0, currently there are no alternative.
But according to the link, if you use spring
, you can still use the service.
这篇关于Hibernate升级:StatisticsService()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!