【发布时间】:2014-12-09 19:49:02
【问题描述】:
在我的休眠配置文件中,我曾经指定包括数据库名称在内的属性
<property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.url">jdbc:mysql://localhost:3306/test</property>
在其中一个 hbm 文件中
<class name="com.test.entity.User" table="user" catalog="employee">
为什么hbm文件中的目录会覆盖hibernate配置文件hibernate中指定的数据库连接?
它是否连接到两个数据库?
【问题讨论】:
标签: hibernate