English 中文(简体)
含有Netbeans逆向的嵌入 DB 问题
原标题:Derby + Hibernate Embedded DB Issue with Netbeans reverse eng

我有一个 JavaSE 项目, 使用嵌入的 Derby/ JavaDB 数据库。 我如何在可用表格下显示 AAP 系统图中的表格?

在服务下建立连接后, 我可以创建/连接, 并手工使用 derby 。 效果很好 。

现在我试图给这个项目添加冬眠, 并且需要设置我的冬眠配置。这是我的配置:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
  <session-factory>
    <property name="hibernate.connection.driver_class">org.apache.derby.jdbc.EmbeddedDriver</property>
    <property name="hibernate.connection.url">jdbc:derby:studydata</property>
    <property name="hibernate.connection.username">user</property>
    <property name="hibernate.connection.password">pass</property>
    <property name="hibernate.show_sql">true</property>
    <property name="hibernate.dialect">org.hibernate.dialect.DerbyDialect</property>
    <property name="hibernate.query.factory_class">org.hibernate.hql.classic.ClassicQueryTranslatorFactory</property>
  </session-factory>
</hibernate-configuration>

反向 eng 插件似乎不起作用, 它运行, 显示没有错误, 但也显示没有可用的表格 。

日志文件 :

INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: Initializing Custom Classloader with classpath : 
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/Users/nycynik/Documents/java/db-derby-10.8.2.2-bin/lib/derby.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/Applications/NetBeans/NetBeans%207.0.1.app/Contents/Resources/NetBeans/java/modules/ext/hibernate/antlr-2.7.6.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/Applications/NetBeans/NetBeans%207.0.1.app/Contents/Resources/NetBeans/java/modules/ext/hibernate/asm.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/Applications/NetBeans/NetBeans%207.0.1.app/Contents/Resources/NetBeans/java/modules/ext/hibernate/asm-attrs.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/Applications/NetBeans/NetBeans%207.0.1.app/Contents/Resources/NetBeans/java/modules/ext/hibernate/cglib-2.1.3.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/Applications/NetBeans/NetBeans%207.0.1.app/Contents/Resources/NetBeans/java/modules/ext/hibernate/commons-collections-2.1.1.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/Applications/NetBeans/NetBeans%207.0.1.app/Contents/Resources/NetBeans/ide/modules/ext/commons-logging-1.1.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/Applications/NetBeans/NetBeans%207.0.1.app/Contents/Resources/NetBeans/java/modules/ext/hibernate/dom4j-1.6.1.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/Applications/NetBeans/NetBeans%207.0.1.app/Contents/Resources/NetBeans/java/modules/ext/hibernate/ehcache-1.2.3.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/Applications/NetBeans/NetBeans%207.0.1.app/Contents/Resources/NetBeans/java/modules/ext/hibernate/jdbc2_0-stdext.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/Applications/NetBeans/NetBeans%207.0.1.app/Contents/Resources/NetBeans/java/modules/ext/hibernate/jta.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/Applications/NetBeans/NetBeans%207.0.1.app/Contents/Resources/NetBeans/java/modules/ext/hibernate/hibernate3.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/Applications/NetBeans/NetBeans%207.0.1.app/Contents/Resources/NetBeans/java/modules/ext/hibernate/hibernate-tools.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/Applications/NetBeans/NetBeans%207.0.1.app/Contents/Resources/NetBeans/java/modules/ext/hibernate/hibernate-annotations.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/Applications/NetBeans/NetBeans%207.0.1.app/Contents/Resources/NetBeans/java/modules/ext/hibernate/hibernate-commons-annotations.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/Applications/NetBeans/NetBeans%207.0.1.app/Contents/Resources/NetBeans/java/modules/ext/hibernate/hibernate-entitymanager.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/Applications/NetBeans/NetBeans%207.0.1.app/Contents/Resources/NetBeans/java/modules/ext/hibernate/javassist.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/Applications/NetBeans/NetBeans%207.0.1.app/Contents/Resources/NetBeans/java/modules/ext/hibernate/ejb3-persistence.jar!/
INFO [org.netbeans.modules.hibernate.service.spi.HibernateEnvironmentImpl]: Direct Database connection established.
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: Initializing Custom Classloader with classpath : 
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/Users/nycynik/Documents/java/db-derby-10.8.2.2-bin/lib/derby.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/Applications/NetBeans/NetBeans%207.0.1.app/Contents/Resources/NetBeans/java/modules/ext/hibernate/antlr-2.7.6.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/Applications/NetBeans/NetBeans%207.0.1.app/Contents/Resources/NetBeans/java/modules/ext/hibernate/asm.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/Applications/NetBeans/NetBeans%207.0.1.app/Contents/Resources/NetBeans/java/modules/ext/hibernate/asm-attrs.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/Applications/NetBeans/NetBeans%207.0.1.app/Contents/Resources/NetBeans/java/modules/ext/hibernate/cglib-2.1.3.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/Applications/NetBeans/NetBeans%207.0.1.app/Contents/Resources/NetBeans/java/modules/ext/hibernate/commons-collections-2.1.1.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/Applications/NetBeans/NetBeans%207.0.1.app/Contents/Resources/NetBeans/ide/modules/ext/commons-logging-1.1.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/Applications/NetBeans/NetBeans%207.0.1.app/Contents/Resources/NetBeans/java/modules/ext/hibernate/dom4j-1.6.1.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/Applications/NetBeans/NetBeans%207.0.1.app/Contents/Resources/NetBeans/java/modules/ext/hibernate/ehcache-1.2.3.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/Applications/NetBeans/NetBeans%207.0.1.app/Contents/Resources/NetBeans/java/modules/ext/hibernate/jdbc2_0-stdext.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/Applications/NetBeans/NetBeans%207.0.1.app/Contents/Resources/NetBeans/java/modules/ext/hibernate/jta.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/Applications/NetBeans/NetBeans%207.0.1.app/Contents/Resources/NetBeans/java/modules/ext/hibernate/hibernate3.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/Applications/NetBeans/NetBeans%207.0.1.app/Contents/Resources/NetBeans/java/modules/ext/hibernate/hibernate-tools.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/Applications/NetBeans/NetBeans%207.0.1.app/Contents/Resources/NetBeans/java/modules/ext/hibernate/hibernate-annotations.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/Applications/NetBeans/NetBeans%207.0.1.app/Contents/Resources/NetBeans/java/modules/ext/hibernate/hibernate-commons-annotations.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/Applications/NetBeans/NetBeans%207.0.1.app/Contents/Resources/NetBeans/java/modules/ext/hibernate/hibernate-entitymanager.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/Applications/NetBeans/NetBeans%207.0.1.app/Contents/Resources/NetBeans/java/modules/ext/hibernate/javassist.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/Applications/NetBeans/NetBeans%207.0.1.app/Contents/Resources/NetBeans/java/modules/ext/hibernate/ejb3-persistence.jar!/
INFO [org.netbeans.modules.hibernate.service.spi.HibernateEnvironmentImpl]: dbDriver loaded.
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: Initializing Custom Classloader with classpath : 
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/Users/nycynik/Documents/java/db-derby-10.8.2.2-bin/lib/derby.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/Applications/NetBeans/NetBeans%207.0.1.app/Contents/Resources/NetBeans/java/modules/ext/hibernate/antlr-2.7.6.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/Applications/NetBeans/NetBeans%207.0.1.app/Contents/Resources/NetBeans/java/modules/ext/hibernate/asm.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/Applications/NetBeans/NetBeans%207.0.1.app/Contents/Resources/NetBeans/java/modules/ext/hibernate/asm-attrs.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/Applications/NetBeans/NetBeans%207.0.1.app/Contents/Resources/NetBeans/java/modules/ext/hibernate/cglib-2.1.3.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/Applications/NetBeans/NetBeans%207.0.1.app/Contents/Resources/NetBeans/java/modules/ext/hibernate/commons-collections-2.1.1.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/Applications/NetBeans/NetBeans%207.0.1.app/Contents/Resources/NetBeans/ide/modules/ext/commons-logging-1.1.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/Applications/NetBeans/NetBeans%207.0.1.app/Contents/Resources/NetBeans/java/modules/ext/hibernate/dom4j-1.6.1.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/Applications/NetBeans/NetBeans%207.0.1.app/Contents/Resources/NetBeans/java/modules/ext/hibernate/ehcache-1.2.3.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/Applications/NetBeans/NetBeans%207.0.1.app/Contents/Resources/NetBeans/java/modules/ext/hibernate/jdbc2_0-stdext.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/Applications/NetBeans/NetBeans%207.0.1.app/Contents/Resources/NetBeans/java/modules/ext/hibernate/jta.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/Applications/NetBeans/NetBeans%207.0.1.app/Contents/Resources/NetBeans/java/modules/ext/hibernate/hibernate3.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/Applications/NetBeans/NetBeans%207.0.1.app/Contents/Resources/NetBeans/java/modules/ext/hibernate/hibernate-tools.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/Applications/NetBeans/NetBeans%207.0.1.app/Contents/Resources/NetBeans/java/modules/ext/hibernate/hibernate-annotations.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/Applications/NetBeans/NetBeans%207.0.1.app/Contents/Resources/NetBeans/java/modules/ext/hibernate/hibernate-commons-annotations.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/Applications/NetBeans/NetBeans%207.0.1.app/Contents/Resources/NetBeans/java/modules/ext/hibernate/hibernate-entitymanager.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/Applications/NetBeans/NetBeans%207.0.1.app/Contents/Resources/NetBeans/java/modules/ext/hibernate/javassist.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/Applications/NetBeans/NetBeans%207.0.1.app/Contents/Resources/NetBeans/java/modules/ext/hibernate/ejb3-persistence.jar!/
INFO [org.netbeans.modules.hibernate.service.spi.HibernateEnvironmentImpl]: Direct Database connection established.

我唯一能想到的就是计划?

问题回答

- OK,我只是继续与巫师, 它允许我完成 没有选择一个桌子。

然后,我继续前进,就像没事是错的, 并使用POJO创造巫师 在数据库上, 并且,它奏效了。

我不知道为什么我无法像用其他数据库一样选择表格,但不管用哪一种方法都行得通。





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签