admin管理员组文章数量:1304126
I have been tasked to upgrade a Java project, and now in the Hibernate package, there was a function dialect.getTypeName()
but now it is giving me undefined after upgrading to version 6.6.6. I don't want to go back I need alternatives.
Below is my function call
dialect.getTypeName(-16, 255, 0, 0)
I am getting error getTypeName is not defined. I have searched and have found that it has been moved to Jdbc
, but I could not found any way what will do the exact same thing the above code can.
I have been tasked to upgrade a Java project, and now in the Hibernate package, there was a function dialect.getTypeName()
but now it is giving me undefined after upgrading to version 6.6.6. I don't want to go back I need alternatives.
Below is my function call
dialect.getTypeName(-16, 255, 0, 0)
I am getting error getTypeName is not defined. I have searched and have found that it has been moved to Jdbc
, but I could not found any way what will do the exact same thing the above code can.
- 1 It was removed in 6.0, but not covered in the migration guide. – Mark Rotteveel Commented Feb 4 at 11:41
- @MarkRotteveel I know that. That's why I am asking for any laternatives – Muhammad Junaid Khalid Commented Feb 5 at 5:33
1 Answer
Reset to default 0I explored various alternatives but could not find a different outcome. To verify, I executed a code snippet to retrieve the corresponding value for each SQL dialect and found that the result was consistently nvarchar(255)
across all dialects.
本文标签: javaWhat is replacement of getTypeName() in DIalect class of HibernateStack Overflow
版权声明:本文标题:java - What is replacement of getTypeName() in DIalect class of Hibernate - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741781081a2397313.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论