- <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 persistence_1_0.xsd” version=“1.0”>
- <persistence-unit name=“eclipselink” transaction-type=“RESOURCE_LOCAL”>
- <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
- <class>org.compass.gps.device.jpa.model.Simple</class>
- <class>org.compass.gps.device.jpa.model.SimpleBase</class>
- <class>org.compass.gps.device.jpa.model.SimpleExtend</class>
- <exclude-unlisted-classes>false</exclude-unlisted-classes>
- <properties>
- <property name=“eclipselink.jdbc.driver” value=“org.hsqldb.jdbcDriver”/>
- <property name=“eclipselink.jdbc.url” value=“jdbc:hsqldb:mem:test”/>
- <property name=“eclipselink.jdbc.user” value=“sa”/>
- <property name=“eclipselink.jdbc.password” value=“”/>
- <property name=“eclipselink.target-database”
- value=“org.eclipse.persistence.platform.database.HSQLPlatform”/>
- <property name=“eclipselink.logging.level” value=“OFF”/>
- <property name=“eclipselink.orm.throw.exceptions” value=“true”/>
- <property name=“eclipselink.ddl-generation” value=“drop-and-create-tables”/>
- <property name=“eclipselink.ddl-generation.output-mode” value=“database”/>
- </properties>
- </persistence-unit>
- <persistence-unit name=“embeddedeclipselink” transaction-type=“RESOURCE_LOCAL”>
- <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
- <class>org.compass.gps.device.jpa.model.Simple</class>
- <class>org.compass.gps.device.jpa.model.SimpleBase</class>
- <class>org.compass.gps.device.jpa.model.SimpleExtend</class>
- <exclude-unlisted-classes>false</exclude-unlisted-classes>
- <properties>
- <property name=“eclipselink.jdbc.driver” value=“org.hsqldb.jdbcDriver”/>
- <property name=“eclipselink.jdbc.url” value=“jdbc:hsqldb:mem:test”/>
- <property name=“eclipselink.jdbc.user” value=“sa”/>
- <property name=“eclipselink.jdbc.password” value=“”/>
- <property name=“eclipselink.target-database”
- value=“org.eclipse.persistence.platform.database.HSQLPlatform”/>
- <property name=“eclipselink.logging.level” value=“OFF”/>
- <property name=“eclipselink.orm.throw.exceptions” value=“true”/>
- <property name=“eclipselink.ddl-generation” value=“drop-and-create-tables”/>
- <property name=“eclipselink.ddl-generation.output-mode” value=“database”/>
- <property name=“eclipselink.session.customizer”
- value=“org.compass.gps.device.jpa.embedded.eclipselink.CompassSessionCustomizer”/>
- <property name=“compass.engine.connection” value=“target/test-index”/>
- <property name=“compass.debug” value=“true” />
- </properties>
- </persistence-unit>
- <persistence-unit name=“toplink” transaction-type=“RESOURCE_LOCAL”>
- <provider>oracle.toplink.essentials.PersistenceProvider</provider>
- <class>org.compass.gps.device.jpa.model.Simple</class>
- <class>org.compass.gps.device.jpa.model.SimpleBase</class>
- <class>org.compass.gps.device.jpa.model.SimpleExtend</class>
- <exclude-unlisted-classes>false</exclude-unlisted-classes>
- <properties>
- <property name=“toplink.jdbc.driver” value=“org.hsqldb.jdbcDriver”/>
- <property name=“toplink.jdbc.url” value=“jdbc:hsqldb:mem:test”/>
- <property name=“toplink.jdbc.user” value=“sa”/>
- <property name=“toplink.jdbc.password” value=“”/>
- <property name=“toplink.target-database” value=“oracle.toplink.essentials.platform.database.HSQLPlatform”/>
- <property name=“toplink.logging.level” value=“OFF”/>
- <property name=“toplink.orm.throw.exceptions” value=“true”/>
- <property name=“toplink.ddl-generation” value=“drop-and-create-tables”/>
- <property name=“toplink.ddl-generation.output-mode” value=“database”/>
- </properties>
- </persistence-unit>
- <persistence-unit name=“embeddedtoplink” transaction-type=“RESOURCE_LOCAL”>
- <provider>oracle.toplink.essentials.PersistenceProvider</provider>
- <class>org.compass.gps.device.jpa.model.Simple</class>
- <class>org.compass.gps.device.jpa.model.SimpleBase</class>
- <class>org.compass.gps.device.jpa.model.SimpleExtend</class>
- <exclude-unlisted-classes>false</exclude-unlisted-classes>
- <properties>
- <property name=“toplink.jdbc.driver” value=“org.hsqldb.jdbcDriver”/>
- <property name=“toplink.jdbc.url” value=“jdbc:hsqldb:mem:test”/>
- <property name=“toplink.jdbc.user” value=“sa”/>
- <property name=“toplink.jdbc.password” value=“”/>
- <property name=“toplink.target-database” value=“oracle.toplink.essentials.platform.database.HSQLPlatform”/>
- <property name=“toplink.logging.level” value=“OFF”/>
- <property name=“toplink.orm.throw.exceptions” value=“true”/>
- <property name=“toplink.ddl-generation” value=“drop-and-create-tables”/>
- <property name=“toplink.ddl-generation.output-mode” value=“database”/>
- <property name=“toplink.session.customizer”
- value=“org.compass.gps.device.jpa.embedded.toplink.CompassSessionCustomizer”/>
- <property name=“compass.engine.connection” value=“target/test-index”/>
- <property name=“compass.debug” value=“true” />
- </properties>
- </persistence-unit>
- <persistence-unit name=“hibernate” transaction-type=“RESOURCE_LOCAL”>
- <provider>org.hibernate.ejb.HibernatePersistence</provider>
- <class>org.compass.gps.device.jpa.model.Simple</class>
- <class>org.compass.gps.device.jpa.model.SimpleBase</class>
- <class>org.compass.gps.device.jpa.model.SimpleExtend</class>
- <exclude-unlisted-classes>false</exclude-unlisted-classes>
- <properties>
- <property name=“hibernate.dialect” value=“org.hibernate.dialect.HSQLDialect”/>
- <property name=“hibernate.connection.driver_class” value=“org.hsqldb.jdbcDriver”/>
- <property name=“hibernate.connection.url” value=“jdbc:hsqldb:mem:test”/>
- <property name=“hibernate.connection.username” value=“sa”/>
- <property name=“hibernate.connection.password” value=“”/>
- <property name=“hibernate.search.autoregister_listeners” value=“false”/>
- <property name=“hibernate.hbm2ddl.auto” value=“create”/>
- </properties>
- </persistence-unit>
- <persistence-unit name=“embeddedhibernate” transaction-type=“RESOURCE_LOCAL”>
- <provider>org.hibernate.ejb.HibernatePersistence</provider>
- <class>org.compass.gps.device.jpa.model.Simple</class>
- <class>org.compass.gps.device.jpa.model.SimpleBase</class>
- <class>org.compass.gps.device.jpa.model.SimpleExtend</class>
- <exclude-unlisted-classes>false</exclude-unlisted-classes>
- <properties>
- <property name=“hibernate.dialect” value=“org.hibernate.dialect.HSQLDialect”/>
- <property name=“hibernate.connection.driver_class” value=“org.hsqldb.jdbcDriver”/>
- <property name=“hibernate.connection.url” value=“jdbc:hsqldb:mem:test”/>
- <property name=“hibernate.connection.username” value=“sa”/>
- <property name=“hibernate.connection.password” value=“”/>
- <property name=“hibernate.search.autoregister_listeners” value=“true”/>
- <property name=“hibernate.hbm2ddl.auto” value=“create”/>
- <property name=“compass.engine.connection” value=“target/test-index”/>
- <property name=“compass.debug” value=“true” />
- </properties>
- </persistence-unit>
- <persistence-unit name=“openjpa” transaction-type=“RESOURCE_LOCAL”>
- <provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider>
- <class>org.compass.gps.device.jpa.model.Simple</class>
- <class>org.compass.gps.device.jpa.model.SimpleBase</class>
- <class>org.compass.gps.device.jpa.model.SimpleExtend</class>
- <exclude-unlisted-classes>false</exclude-unlisted-classes>
- <properties>
- <property name=“openjpa.jdbc.DBDictionary” value=“hsql”/>
- <property name=“openjpa.ConnectionDriverName” value=“org.hsqldb.jdbcDriver”/>
- <property name=“openjpa.ConnectionURL” value=“jdbc:hsqldb:mem:test”/>
- <property name=“openjpa.ConnectionUserName” value=“sa”/>
- <property name=“openjpa.ConnectionPassword” value=“”/>
- <property name=“openjpa.jdbc.SynchronizeMappings” value=“buildSchema”/>
- </properties>
- </persistence-unit>
- <persistence-unit name=“embeddedopenjpa” transaction-type=“RESOURCE_LOCAL”>
- <provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider>
- <class>org.compass.gps.device.jpa.model.Simple</class>
- <class>org.compass.gps.device.jpa.model.SimpleBase</class>
- <class>org.compass.gps.device.jpa.model.SimpleExtend</class>
- <exclude-unlisted-classes>true</exclude-unlisted-classes>
- <properties>
- <property name=“openjpa.jdbc.DBDictionary” value=“hsql”/>
- <property name=“openjpa.ConnectionDriverName” value=“org.hsqldb.jdbcDriver”/>
- <property name=“openjpa.ConnectionURL” value=“jdbc:hsqldb:mem:test”/>
- <property name=“openjpa.ConnectionUserName” value=“sa”/>
- <property name=“openjpa.ConnectionPassword” value=“”/>
- <property name=“openjpa.jdbc.SynchronizeMappings” value=“buildSchema”/>
- <property name=“compass.engine.connection” value=“target/test-index”/>
- <property name=“compass.debug” value=“true” />
- </properties>
- </persistence-unit>
- </persistence>
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
如需转载请保留出处:https://bianchenghao.cn/36500.html