开发者

Netbeans. "Entiry classes from database" and Postgresql domains

开发者 https://www.devze.com 2023-01-11 02:53 出处:网络
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 \"Se

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 p开发者_JAVA技巧ointer exception.

How can I fix this?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消