无法使用选定的休眠配置文件建立数据库连接。请验证hibernate.cfg.xml中的数据库连接详细信息

时间:2018-12-05 07:29:59

标签: java hibernate derby netbeans-8

我的hibernate.cfg如下

<property name="hibernate.connection.driver_class">
  org.apache.derby.jdbc.EmbeddedDriver
</property>
<property name="hibernate.connection.url">
  jdbc:derby:/home/swapnil/.netbeans-derby/cpos
</property>
<property name="hibernate.connection.username">cpos</property>
<property name="hibernate.connection.password">cpos</property>
<property name="hibernate.dialect">
  org.hibernate.dialect.DerbyDialect
</property>  

我还想念什么?
我正在使用Derby Embedded
使用类文件,我可以建立和访问数据库,但是它不适用于Hibernate

  

无法与所选的Hibernate Configuration文件建立数据库连接。请在hibernate.cfg.xml中验证数据库连接详细信息。

Netbeans IDE的逆向工程向导中

0 个答案:

没有答案