我的机器上安装了测试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位)。但是我一直在试图让集成安全性与向导一起工作。 –