我的機器上安裝了測試SQL Server數據庫。 創建一個測試SQL Server帳戶,並使用TestDb中的此帳戶在默認架構中創建兩個表。 在我的Java Web應用程序(簡單JSP)上,我使用Hibernate並將其配置爲指向測試數據庫。 但是,當我創建hibernate.reveng文件時,嚮導沒有找到/顯示任何可用的表。 請參閱我的Hibernate的配置文件:Netbeans中的hibernate反向工程無法找到SQL Server表
<hibernate-configuration>
<session-factory>
<property name="hibernate.connection.driver_class">com.microsoft.sqlserver.jdbc.SQLServerDriver</property>
<property name="hibernate.connection.url">jdbc:sqlserver://localhost:1433;databaseName=TestDb;</property>
<property name="hibernate.connection.username">test</property>
<property name="hibernate.connection.password">password</property>
<property name="hibernate.dialect">org.hibernate.dialect.SQLServerDialect</property>
</session-factory>
</hibernate-configuration>
去哪裏我應該看錶步驟時,沒有錯誤。它只是不會在兩個數據庫表格框中顯示任何內容。 我甚至可以保存沒有任何警告/錯誤的XML文件,但裏面沒有表。 我需要一些當前設置的幫助,以便通過休眠嚮導顯示和映射表。
得到完全相同的問題,仍然沒有找到任何解決方案。 – Lenymm
如果你不使用集成安全性,這將工作(見http://stackoverflow.com/questions/33487748/how-can-i-get-the-hibernate-reverse-engineering-wizard-to-find-tables-在-Microso位)。但是我一直在試圖讓集成安全性與嚮導一起工作。 –