| .. | .. |
|---|
| 2 | 2 | <persistence version="2.0" |
|---|
| 3 | 3 | xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|---|
| 4 | 4 | xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"> |
|---|
| 5 | | - <persistence-unit name="localdb" transaction-type="RESOURCE_LOCAL"> |
|---|
| 5 | + <persistence-unit name="localdb" > |
|---|
| 6 | 6 | <description>SeCuris LocalDB</description> |
|---|
| 7 | 7 | <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider> |
|---|
| 8 | + <non-jta-data-source>java:comp/env/SeCurisDS</non-jta-data-source> |
|---|
| 8 | 9 | <shared-cache-mode>NONE</shared-cache-mode> |
|---|
| 9 | | - |
|---|
| 10 | | -<!-- <jta-data-source>java:comp/env/jdbc/SeCurisDS</jta-data-source> |
|---|
| 11 | | - --> |
|---|
| 12 | | - <!-- <class>net.curisit.securis.db.UserSettingsUnits</class> --> |
|---|
| 13 | | - |
|---|
| 14 | 10 | <properties> |
|---|
| 15 | 11 | <property name="hibernate.cache.provider_class" value="org.hibernate.cache.internal.NoCachingRegionFactory"/> |
|---|
| 16 | 12 | <property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5Dialect" /> |
|---|
| 17 | | - <property name="hibernate.connection.datasource" value="java:comp/env/jdbc/SeCurisDS" /> |
|---|
| 13 | + <!-- <property name="hibernate.connection.datasource" value="java:comp/env/jdbc/SeCurisDS" /> --> |
|---|
| 18 | 14 | |
|---|
| 19 | 15 | <property name="hibernate.cache.use_second_level_cache" value="false" /> |
|---|
| 20 | 16 | <!-- <property name="hibernate.show_sql" value="true" /> --> |
|---|