Netbeans - generating entity class from database

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-10 13:32:07

问题


I am using netbeans IDE 7.1. I am trying to generate entity classes from a database(sql server). I am able to setup the connection to this remote datasource but in the New Entity Classes from database Wizard the tables are not showing up and at the bottom it says select atleast one table.

I could execute queries and browse through the tables from the netbeans databases service.

Can someone help me to fix this..

Thanks


回答1:


maybe your schema is not selected correctly, check on service windows->database->your connection(the bold schema is a default selected schema) if it wrong, right-click->properties, and change your schema to public, all the tables that you created are here normally hope useful :)




回答2:


I faced this issue and the only way I could get it to work was to create a new connection every time. Once i created a new connection it would show me the tables and I could use it, otherwise it would just leave the list empty



来源:https://stackoverflow.com/questions/8991728/netbeans-generating-entity-class-from-database

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!