hibernate逆向工程字符编码
您好,我正在尝试使用我的 Oracle 数据库进行逆向工程,但有一个小问题,即 Hibernate 以不需要的编码生成类名。例如,如果表名“KKYAGI”,
我的类名是“KkyAgı”,这里“ı”对我来说是个问题,我希望它是“KkyAgi”。我知道我们可以使用 hibernate 工具创建自定义逆向工程策略,但我无法使用 netbeans 做到这一点。
有没有一种简单的方法可以做到这一点,或者如果我必须使用 hibernatetools,任何人都可以帮助我使用 netbeans? 谢谢。
Hi i am trying to reverse engineering with my oracle database but have a small problem that hibernate generates classnames in a unwanted encoding. for example if table name "KKYAGI"
my classname is "KkyAgı" here the "ı" is problem for me i want it as "KkyAgi". I know we can create a custom reverse engineering strategy with hibernate tools but i could not manage to do with netbeans.
is there a easy way to do that or if i have to use hibernatetools anyone can help me with netbeans?
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我猜您在具有土耳其语言环境的计算机上运行 NetBeans。如果是这样,请尝试通过更改
user.language
系统属性(请注意,它是 JVM 系统属性,而不是环境变量)来更改 NetBeans 使用的区域设置。我不确定 NetBeans 启动是如何工作的,但我认为应该有一些配置可以在其中指定 JVM 属性,并且您可以在那里编写类似
-Duser.language=en
的内容。I guess you run NetBeans on a machine with Turkish locale. If so, try to change locale used by NetBeans by changing
user.language
system property (note that it's a JVM system propery, not an environment variable).I'm not sure how NetBeans startup works, but I think there should be some config where you can specify JVM properties, and you can write something like
-Duser.language=en
there.对于 Eclipse IDE(休眠工具)
尝试在 eclipse 安装目录中的 eclipse.ini 底部添加 -Duser.language=en (在进行任何更改之前保留 eclipse.ini 的备份副本)。
For eclipse ide (hibernate tools)
Try adding -Duser.language=en in the bottom of your eclipse.ini which is found in your eclipse installation directory (keep a backup copy of the eclipse.ini before any changes).