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.
信息在哪里? 是否有关于违约数据来源或类似数据的内容? 谁能向我看一看?
提前感谢。
最好