Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
<?xml version='1.0' encoding='UTF-8'?>
<!--

     Copyright (c) 2011 Leibniz Institute of Plant Genetics and Crop Plant Research (IPK), Gatersleben, Germany.
     All rights reserved. This program and the accompanying materials
     are made available under the terms of the GNU Lesser Public License v2.1
     which accompanies this distribution, and is available at
     http://www.gnu.org/licenses/old-licenses/gpl-2.0.html

     Contributors:
         Leibniz Institute of Plant Genetics and Crop Plant Research (IPK), Gatersleben, Germany - initial API and implementation

-->
<!DOCTYPE hibernate-configuration PUBLIC
   "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
   "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
	<session-factory>

		<!-- these properties will set programmatically -->

		<!--<property name="connection.url">/home/edal/</property> -->
		<!--<property name="hibernate.connection.username">sa</property> -->
		<!--<property name="hibernate.connection.password"></property> -->

		<!-- properties for the database connection -->

		<property name="hibernate.connection.driver_class">org.h2.Driver</property>
		<property name="hibernate.dialect">org.hibernate.dialect.H2Dialect</property>
		<property name="hibernate.current_session_context_class">thread</property>

		<property name="hibernate.connection.provider_class">com.jolbox.bonecp.provider.BoneCPConnectionProvider</property>
		<property name="bonecp.idleMaxAgeInMinutes">240</property>
		<property name="bonecp.idleConnectionTestPeriodInMinutes">60</property>
		<property name="bonecp.partitionCount">3</property>
		<property name="bonecp.acquireIncrement">10</property>
		<property name="bonecp.maxConnectionsPerPartition">60</property>
		<property name="bonecp.minConnectionsPerPartition">20</property>
		<property name="bonecp.statementsCacheSize">500</property>
		<property name="bonecp.releaseHelperThreads">3</property>

		<property name="hibernate.transaction.factory_class">org.hibernate.transaction.JDBCTransactionFactory</property>

		<!-- cache properties -->

		<property name="hibernate.cache.provider_class">org.hibernate.cache.EhCacheProvider</property>
		<property name="hibernate.cache.provider_configuration_file_resource_path">de/ipk_gatersleben/bit/bi/edal/primary_data/file/implementation/ehcache.xml</property>

		<!-- when using a separate EhCache dependency use RegionFactory -->
		<!--<property name="hibernate.cache.region.factory_class">net.sf.ehcache.hibernate.EhCacheRegionFactory</property> -->

		<property name="hibernate.cache.use_query_cache">true</property>
		<property name="hibernate.cache.use_second_level_cache">true</property>
		<property name="hibernate.cache.use_structured_entries">true</property>

		<!-- statistic and debug properties -->

		<property name="hibernate.generate_statistics">true</property>
		<property name="hibernate.show_sql">false</property>
		<property name="hibernate.format_sql">false</property>

		<!-- Hibernate Search properties -->

		<property name="hibernate.search.default.directory_provider">org.hibernate.search.store.FSDirectoryProvider</property>
		<!-- <property name="hibernate.search.indexing_strategy">manual</property> -->

		<!-- will set programmatically -->
		<!-- <property name="hibernate.search.default.indexBase">/home/edal/lucene/</property> -->

		<!-- alternative use the RAMProvider -->
		<!-- <property name="hibernate.search.UntypedData.directory_provider">org.hibernate.search.store.RAMDirectoryProvider</property> -->


		<!-- mapping classes -->
		<mapping
			class="de.ipk_gatersleben.bit.bi.edal.primary_data.file.implementation.RootImplementation" />
		<mapping
			class="de.ipk_gatersleben.bit.bi.edal.primary_data.file.implementation.PrincipalImplementation" />
		<mapping
			class="de.ipk_gatersleben.bit.bi.edal.primary_data.file.implementation.PrimaryDataDirectoryImplementation" />
		<mapping
			class="de.ipk_gatersleben.bit.bi.edal.primary_data.file.implementation.PrimaryDataFileImplementation" />
		<mapping
			class="de.ipk_gatersleben.bit.bi.edal.primary_data.file.implementation.PrimaryDataEntityVersionImplementation" />
		<mapping
			class="de.ipk_gatersleben.bit.bi.edal.primary_data.file.implementation.MetaDataImplementation" />
		<mapping
			class="de.ipk_gatersleben.bit.bi.edal.primary_data.file.implementation.EdalPermissionImplementation" />
		<mapping
			class="de.ipk_gatersleben.bit.bi.edal.primary_data.file.implementation.SupportedPrincipals" />
		<mapping
			class="de.ipk_gatersleben.bit.bi.edal.primary_data.file.implementation.PublicReferenceImplementation" />
		<mapping
			class="de.ipk_gatersleben.bit.bi.edal.primary_data.file.implementation.TicketImplementation" />
		<mapping
			class="de.ipk_gatersleben.bit.bi.edal.primary_data.file.implementation.ReviewersImplementation" />
		<mapping
			class="de.ipk_gatersleben.bit.bi.edal.primary_data.file.implementation.ReviewStatusImplementation" />
		<mapping
			class="de.ipk_gatersleben.bit.bi.edal.primary_data.file.implementation.UrlImplementation" />
		<mapping
			class="de.ipk_gatersleben.bit.bi.edal.primary_data.file.implementation.DoiImplementation" />

		<mapping
			class="de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.implementation.MyDataFormat" />
		<mapping
			class="de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.implementation.MyDataType" />
		<mapping
			class="de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.implementation.MyDataSize" />

		<mapping
			class="de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.implementation.MyDirectoryMetaData" />
		<mapping
			class="de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.implementation.MyEmptyMetaData" />
		<mapping
			class="de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.implementation.MyIdentifier" />
		<mapping
			class="de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.implementation.MyIdentifierRelation" />
		<mapping
			class="de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.implementation.MyPerson" />
		<mapping
			class="de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.implementation.MyNaturalPerson" />
		<mapping
			class="de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.implementation.MyLegalPerson" />
		<mapping
			class="de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.implementation.MyUnknownMetaData" />
		<mapping
			class="de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.implementation.MyUntypedData" />

		<mapping
			class="de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.implementation.MyCheckSumType" />
		<mapping
			class="de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.implementation.MyCheckSum" />
		<mapping
			class="de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.implementation.MyEdalLanguage" />
			<mapping
			class="de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.implementation.MyEdalDate" />
			<mapping
			class="de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.implementation.MyEdalDateRange" />
			<mapping
			class="de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.implementation.MyDateEvents" />
	</session-factory>
</hibernate-configuration>
New to GrepCode? Check out our FAQ X