Netbeans-从数据库生成实体类 [英] Netbeans - generating entity class from database

查看:266
本文介绍了Netbeans-从数据库生成实体类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用netbeans IDE 7.1.我试图从数据库(sql server)生成实体类.我可以建立到该远程数据源的连接,但是在数据库向导的新实体类"中,表未显示,并且在底部说选择了至少一个表.

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.

我可以执行查询并通过netbeans数据库服务浏览表.

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

有人可以帮我解决这个问题.

Can someone help me to fix this..

谢谢

推荐答案

也许您的架构未正确选择,如果服务不正确,请检查服务窗口->数据库->您的连接(粗体架构是默认选择的架构),右键单击->属性,然后将架构更改为公共,创建的所有表通常都在此处 希望有用:)

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 :)

这篇关于Netbeans-从数据库生成实体类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆