2
~ Software License Agreement (BSD License)
4
~ Copyright (c) 2008, Regents of the University of California
7
~ Redistribution and use of this software in source and binary forms, with or
8
~ without modification, are permitted provided that the following conditions
11
~ * Redistributions of source code must retain the above
12
~ copyright notice, this list of conditions and the
13
~ following disclaimer.
15
~ * Redistributions in binary form must reproduce the above
16
~ copyright notice, this list of conditions and the
17
~ following disclaimer in the documentation and/or other
18
~ materials provided with the distribution.
20
~ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21
~ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22
~ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23
~ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
24
~ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25
~ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26
~ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27
~ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28
~ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29
~ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30
~ POSSIBILITY OF SUCH DAMAGE.
32
~ Author: Chris Grzegorczyk grze@cs.ucsb.edu
35
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
36
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
37
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
40
<persistence-unit name="${eucalyptus.volumes}" transaction-type="RESOURCE_LOCAL">
41
<provider>org.hibernate.ejb.HibernatePersistence</provider>
42
<class>edu.ucsb.eucalyptus.cloud.state.Volume</class>
43
<class>edu.ucsb.eucalyptus.cloud.state.Snapshot</class>
44
<class>edu.ucsb.eucalyptus.cloud.state.AbstractIsomorph</class>
46
<property name="hibernate.connection.provider_class" value="org.hibernate.connection.C3P0ConnectionProvider"/>
47
<property name="hibernate.cache.provider_class" value="org.hibernate.cache.EhCacheProvider"/>
48
<property name="hibernate.cache.use_query_cache" value="true"/>
49
<property name="hibernate.archive.autodetection" value="jar, class, hbm"/>
50
<property name="hibernate.show_sql" value="false"/>
51
<property name="hibernate.format_sql" value="false"/>
52
<property name="hibernate.connection.driver_class" value="org.hsqldb.jdbcDriver"/>
53
<property name="hibernate.connection.url" value="jdbc:hsqldb:file:${euca.var.dir}/db/${eucalyptus.volumes};shutdown=true;hsqldb.log_size=10"/>
54
<property name="hibernate.connection.username" value="sa"/>
55
<property name="hibernate.connection.password" value=""/>
56
<property name="hibernate.connection.autocommit" value="true"/>
57
<property name="hibernate.c3p0.min_size" value="16"/>
58
<property name="hibernate.c3p0.max_size" value="16384"/>
59
<property name="hibernate.c3p0.timeout" value="20"/>
60
<property name="hibernate.c3p0.max_statements" value="0"/>
61
<property name="hibernate.c3p0.idle_test_period" value="20"/>
62
<property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect"/>
63
<property name="hibernate.hbm2ddl.auto" value="update"/>