English 中文(简体)
Hibernate/JPA/GlassFish/Netbeans储存数据的情况如何?
原标题:Where is Hibernate/JPA/GlassFish/Netbeans storing the data?

I m learning Java EE 6 and I m beginning with basic tutorials trying to really understand all the infrastructure and playing a little bit with it.

因此,我就使用日本宇宙航行局问题做了一个基本的教学(this 1)。 唯一的区别是,我改变了对Hibernate实施目标行。

很简单,它有一个实体,一个DAO Session Bean,一个服务单元和一个联合项目。 唯一一件事是,你登记姓名,并显示你的姓名。 I 配置了Hibernate,以便与邮政数据库合作,在持久性中,xml文档显示:

<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
  <persistence-unit name="TutorialGuestBook1PU" transaction-type="JTA">
    <provider>org.hibernate.ejb.HibernatePersistence</provider>
    <jta-data-source>jdbc/__default</jta-data-source>
    <exclude-unlisted-classes>false</exclude-unlisted-classes>
    <properties>
      <property name="hibernate.hbm2ddl.auto" value="update"/>
    </properties>
  </persistence-unit>
</persistence>

Everything is working ok, but I cannot see where is being saved the information that I m saving with the sample application. I know that it must be somewhere but I query the postgres database and I cannot find it.

信息在哪里? 是否有关于违约数据来源或类似数据的内容? 谁能向我看一看?

提前感谢。

最好

最佳回答
问题回答

暂无回答




相关问题
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 ...

热门标签