hibernate逆向工程字符编码

发布于 2024-12-04 21:23:27 字数 269 浏览 6 评论 0原文

您好,我正在尝试使用我的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

酷到爆炸 2024-12-11 21:23:27

我猜您在具有土耳其语言环境的计算机上运行 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.

三生路 2024-12-11 21:23:27

对于 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).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文