【问题标题】:Eclipse doesn't show correct tables in Hibernate configEclipse 没有在 Hibernate 配置中显示正确的表
【发布时间】:2016-12-07 11:39:45
【问题描述】:

我正在使用 Hibernate 创建一个新项目。 我在 Eclipse 环境中正确配置休眠时遇到了一些问题。

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
                                         "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
 <session-factory name="">
  <property name="hibernate.connection.driver_class">com.microsoft.jdbc.sqlserver.SQLServerDriver</property>
  <property name="hibernate.connection.password">XXXXX</property>
  <property name="hibernate.connection.url">jdbc:sqlserver://localhost/Framework</property>
  <property name="hibernate.connection.username">sa</property>
  <property name="hibernate.default_schema">Framework</property>
  <property name="hibernate.dialect">org.hibernate.dialect.SQLServerDialect</property>
  <property name="hibernate.connection.pool_size">10</property>
  <property name="show_sql">true</property>
 </session-factory>
</hibernate-configuration>

我的 Eclipse 环境只看到主数据库而不是我的框架数据库。有人可以帮我解决这个问题吗?

【问题讨论】:

    标签: java eclipse hibernate configuration


    【解决方案1】:

    数据库未正确配置。用户没有正确的权限。修复此问题后,它可以工作。

    【讨论】:

      猜你喜欢
      • 2013-08-01
      • 1970-01-01
      • 2018-10-29
      • 1970-01-01
      • 2010-12-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多