网豆。 “数据库中的条目类”和 Postgresql 域

发布于 2024-09-13 20:40:25 字数 211 浏览 2 评论 0原文

我正在尝试使用 Netbeans 向导“数据库中的实体类”从数据库创建实体类。但如果数据库表中的字段类型是自定义域,则字段类型设置为“Serialized”,但它应该是 String 或 Integer。
因为域只是“普通”Postgresql 数据类型的包装。
如果我的表包含自定义域“DESCRIPTION”,则 NetBeans 会因空指针异常而崩溃。
我该如何解决这个问题?

I am trying to create entity classes form database with Netbeans wizard "Entiry classes from database". But if the field type in database table is an a custom domain the type of field is set to "Serializable", but it should be String or Integer.
Because domains are just wrappers around "normal" Postgresql datatypes.
And if my table contains custom domain "DESCRIPTION" then NetBeans crashes with null pointer exception.
How can I fix this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

夏天碎花小短裙 2024-09-20 20:40:25

听起来像是一个 netbeans bug,但您没有提到 postgresql 的版本以及您的 jdbc 驱动程序是否与您正在运行的版本匹配。这可能可以解决这个问题。

Sounds like a netbeans bug but you didn't mention which version of postgresql and if your jdbc driver matched the version you are running. That might fix it.

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