我得到这个错误使用Hibernate
我需要使用的应用程序:方法getCastTypeName(INT)是未定义的类型方言
The method getCastTypeName(int) is undefined for the type Dialect
它看起来像我现在用错版Hibernate
。
什么版本的这种方法在Dialect
?
我得到这个错误使用Hibernate
我需要使用的应用程序:方法getCastTypeName(INT)是未定义的类型方言
The method getCastTypeName(int) is undefined for the type Dialect
它看起来像我现在用错版Hibernate
。
什么版本的这种方法在Dialect
?
Hibernate 4.1
(这似乎是最新的版本)有它:
http://docs.jboss.org/hibernate/orm/4.1/javadocs/
所以做每一个版本从3.2
和了起来,看到自己:
http://docs.jboss.org/hibernate/orm/
版本3.2
超过3岁,哪个版本是应用程序使用?如果它是一个非常旧的版本,那么该方法可能会丢失。
我搜索在谷歌的“Java方言”。第二个结果与Hibernate 3.5的API文档相关联。在那里,我发现这一点:
https://docs.jboss.org/hibernate/orm/3.5/api/org/hibernate/dialect/Dialect.html#getCastTypeName(int)
这表明,休眠3.5提供了一个名为“getCastTypeName”这需要一个int方法。