persistence.xml.svn-base

来自「demo of using hibernate in scala」· SVN-BASE 代码 · 共 17 行

SVN-BASE
17
字号
<persistence 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_1_0.xsd"
	version="1.0">
	<persistence-unit name="pu" transaction-type="RESOURCE_LOCAL">
      <properties>
         <property name="hibernate.dialect" value="org.hibernate.dialect.H2Dialect"/>
         <property name="hibernate.connection.driver_class" value="org.h2.Driver"/>
         <property name="hibernate.connection.url" value="jdbc:h2:db/test"/>
         <property name="hibernate.max_fetch_depth" value="3"/>  
         <property name="hibernate.hbm2ddl.auto" value="update"/>
         <property name="hibernate.show_sql" value="true"/> 
         <property name="hibernate.ejb.interceptor" value="demo.ScalaInterceptor"/>    
      </properties>
   </persistence-unit>

</persistence>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?