35 lines
1.8 KiB
XML
35 lines
1.8 KiB
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="" transaction-type="RESOURCE_LOCAL">
|
|
<shared-cache-mode>ALL</shared-cache-mode>
|
|
<properties>
|
|
<property name="javax.persistence.jdbc.url" value="jdbc:mysql://localhost:3306/center?autoReconnect=true&characterEncoding=utf8"/>
|
|
<property name="javax.persistence.jdbc.user" value="root"/>
|
|
<property name="javax.persistence.jdbc.password" value="1234"/>
|
|
</properties>
|
|
</persistence-unit>
|
|
|
|
<!--
|
|
<persistence-unit name="user.read" transaction-type="RESOURCE_LOCAL">
|
|
<shared-cache-mode>ALL</shared-cache-mode>
|
|
<properties>
|
|
<property name="javax.persistence.jdbc.url" value="jdbc:oracle:thin:@localhost:1521:orcl"/>
|
|
<property name="javax.persistence.jdbc.user" value="system"/>
|
|
<property name="javax.persistence.jdbc.password" value="1234"/>
|
|
</properties>
|
|
</persistence-unit>
|
|
|
|
<persistence-unit name="user.write" transaction-type="RESOURCE_LOCAL">
|
|
<shared-cache-mode>ALL</shared-cache-mode>
|
|
<properties>
|
|
<property name="javax.persistence.jdbc.url" value="jdbc:mysql://localhost:3306/center?characterEncoding=utf8&useSSL=false&serverTimezone=UTC&rewriteBatchedStatements=true"/>
|
|
<property name="javax.persistence.jdbc.user" value="root"/>
|
|
<property name="javax.persistence.jdbc.password" value="1234"/>
|
|
</properties>
|
|
</persistence-unit>
|
|
-->
|
|
|
|
</persistence>
|