|
Hibernate example source code file (hibernate.cfg.xml)
The Hibernate hibernate.cfg.xml source code<!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> <property name="hibernate.dialect">org.hibernate.dialect.HSQLDialect <property name="hibernate.connection.driver_class">org.hsqldb.jdbcDriver <property name="hibernate.connection.username">sa <property name="hibernate.connection.password"> <property name="hibernate.connection.url">jdbc:hsqldb:. <property name="hibernate.cache.use_query_cache">true <property name="hibernate.cache.region_prefix">hibernate.test <property name="hibernate.jdbc.use_streams_for_binary">true <property name="hibernate.jdbc.batch_size">0 <property name="hibernate.max_fetch_depth">3 <property name="hibernate.hbm2ddl.auto">create-drop <property name="hibernate.generate_statistics">true <property name="hibernate.cache.region.factory_class">org.hibernate.testing.cache.CachingRegionFactory <mapping class="org.hibernate.ejb.test.Item"/> <mapping class="org.hibernate.ejb.test.Cat"/> <mapping class="org.hibernate.ejb.test.Kitten"/> <mapping class="org.hibernate.ejb.test.Distributor"/> <class-cache class="org.hibernate.ejb.test.Item" usage="read-write"/> <collection-cache collection="org.hibernate.ejb.test.Item.distributors" usage="read-write" region="RegionName"/> </session-factory> </hibernate-configuration> Other Hibernate examples (source code examples)Here is a short list of links related to this Hibernate hibernate.cfg.xml source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.