0
我正在開發一個使用Netbeans休眠和MySQL的應用程序,這工作得很好。 將後臺切換到Derby嵌入式數據庫時,hibernate無法執行逆向工程。打開NETbeans休眠和mysql到derby嵌入式
隨着消息:cannot access database with the configuration in "hibernate.cfg"
我的配置:
<hibernate-configuration>
<session-factory>
<property name="hibernate.default_schema">servlandDERBY</property>
<property name="hibernate.connection.driver_class">org.apache.derby.jdbc.EmbeddedDriver</property>
<property name="hibernate.connection.url">jdbc:derby:servlandDERBY</property>
<property name="hibernate.dialect">org.hibernate.dialect.DerbyDialect</property>
<property name="hibernate.show_sql">true</property>
<property name="hibernate.query.factory_class">org.hibernate.hql.ast.ASTQueryTranslatorFactory</property>
</session-factory>
我已經包括在我的項目jar文件JavaDB之外,其中包括的derby.jar 我必須作出任何其他Netbeans中的設置或額外配置?
我的回答可以幫到你嗎? – 2013-02-25 19:24:18