aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-core/src/main/resources/META-INF/persistence.xml
blob: 7ec76949f11fd8fc34b02db840fd2a29dda30067 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?xml version="1.0" encoding="UTF-8"?>
<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="sonar" transaction-type="RESOURCE_LOCAL">
    <provider>org.hibernate.ejb.HibernatePersistence</provider>

    <class>org.sonar.jpa.entity.ManualMeasure</class>
    <class>org.sonar.api.database.configuration.Property</class>
    <class>org.sonar.api.database.model.User</class>
    <class>org.sonar.api.database.model.Snapshot</class>
    <class>org.sonar.api.database.model.MeasureModel</class>
    <class>org.sonar.api.measures.Metric</class>
    <class>org.sonar.api.database.model.ResourceModel</class>
    <class>org.sonar.api.rules.Rule</class>
    <class>org.sonar.api.rules.RuleParam</class>

    <exclude-unlisted-classes>true</exclude-unlisted-classes>
    <properties>
      <property name="hibernate.current_session_context_class" value="thread"/>
      <property name="hibernate.connection.release_mode" value="after_transaction"/>
      <property name="hibernate.bytecode.use_reflection_optimizer" value="true"/>
      <property name="hibernate.query.factory_class" value="org.hibernate.hql.ast.ASTQueryTranslatorFactory"/>
      <property name="hibernate.jdbc.batch_size" value="30"/>
      <property name="hibernate.connection.useUnicode" value="true"/>
      <property name="hibernate.connection.charSet" value="UTF-8"/>
      <property name="hibernate.connection.characterEncoding" value="UTF-8"/>
      <property name="hibernate.cache.provider_class" value="org.hibernate.cache.NoCacheProvider"/>
      <property name="hibernate.cache.use_second_level_cache" value="false"/>
      <property name="hibernate.cache.use_query_cache" value="false"/>
    </properties>
  </persistence-unit>
</persistence>