root / conf / hibernate.cfg.xml

Revision 825:8e868834b725, 2.2 kB (checked in by Harri Kaimio <harri@…>, 2 years ago)

Optimizations for data importing

Line 
1<!DOCTYPE hibernate-configuration SYSTEM
2"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
3<hibernate-configuration>
4    <session-factory>
5        <property name="hibernate.connection.driver_class">
6            org.apache.derby.jdbc.EmbeddedDriver
7        </property>
8        <property name="hibernate.connection.url">
9            jdbc:derby:photovault;create=true
10        </property>
11        <property name="hibernate.connection.autocommit">false</property>
12        <property name="hibernate.connection.username">
13        </property>
14        <property name="hibernate.dialect">
15            org.hibernate.dialect.DerbyDialect
16        </property>
17        <property name="hibernate.current_session_context_class">managed</property>
18        <!-- Use the C3P0 connection pool provider -->
19        <property name="hibernate.c3p0.min_size">5</property>
20        <property name="hibernate.c3p0.max_size">20</property>
21        <property name="hibernate.c3p0.timeout">300</property>
22        <property name="hibernate.c3p0.max_statements">50</property>
23        <property name="hibernate.c3p0.idle_test_period">3000</property>
24        <!-- Show and print nice SQL on stdout -->
25        <property name="show_sql">false</property>
26        <property name="format_sql">true</property>
27        <!-- List of XML mapping files -->
28        <mapping class="org.photovault.imginfo.PhotoInfo"/>
29        <mapping class="org.photovault.imginfo.ImageDescriptorBase"/>
30        <mapping class="org.photovault.imginfo.OriginalImageDescriptor"/>
31        <mapping class="org.photovault.imginfo.CopyImageDescriptor"/>
32        <mapping class="org.photovault.imginfo.ImageFile"/>
33        <mapping class="org.photovault.imginfo.VolumeBase"/>
34        <mapping class="org.photovault.imginfo.Volume"/>
35        <mapping class="org.photovault.imginfo.ExternalVolume"/>
36        <mapping class="org.photovault.folder.PhotoFolder"/>
37        <mapping class="org.photovault.folder.FolderPhotoAssociation"/>
38        <mapping class="org.photovault.common.DbInfo"/>
39        <mapping class="org.photovault.dcraw.RawConversionSettings"/>
40        <mapping class="org.photovault.replication.ObjectHistory"/>
41        <mapping class="org.photovault.replication.Change"/>
42    </session-factory>
43</hibernate-configuration>
Note: See TracBrowser for help on using the browser.