网豆。 “数据库中的条目类”和 Postgresql 域
我正在尝试使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
听起来像是一个 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.