Path: Hibernate-release-5.0.2.final\project\hibernate-ehcache\src\test\resources\hibernate-config
Files: Hibernate.cfg.xml
<?XML version= ' 1.0 ' encoding= ' utf-8 '?><!--~ Hibernate, relational persistence for idiomatic Java ~ ~ License:gnu Lesser general public License (LGPL), vers Ion 2.1 or later. ~ See the Lgpl.txt file in the root directory or <HTTP://WWW.GNU.ORG/LICENSES/LGPL-2.1.HTML>. -<!DOCTYPE hibernate-configuration Public "-//hibernate/hibernate configuration DTD 3.0//en" "Http://www.hi Bernate.org/dtd/hibernate-configuration-3.0.dtd "><hibernate-configuration> <session-factory> <!--Database Connection Settings - <!--<property name= "Connection.driver_class" >org.hsqldb.jdbcDriver</property> <property Name= "Connection.url" >jdbc:hsqldb:hsql://localhost/TestDB</property> - < Propertyname= "Connection.driver_class">Org.h2.Driver</ Property> < Propertyname= "Connection.url">Jdbc:h2:mem:db1;db_close_delay=-1; Mvcc=true</ Property> < Propertyname= "Connection.username">Sa</ Property> < Propertyname= "Connection.password"></ Property> <!--JDBC Connection pool (use the built-in) - < Propertyname= "Connection.pool_size">1</ Property> <!--SQL dialect - < Propertyname= "dialect">Org.hibernate.dialect.H2Dialect</ Property> <!--Enable Hibernate ' s automatic session context management - < Propertyname= "Current_session_context_class">Thread</ Property> < Propertyname= "Cache.use_query_cache">True</ Property> < Propertyname= "Cache.use_second_level_cache">True</ Property> < Propertyname= "Cache.use_structured_entries">True</ Property> < Propertyname= "Cache.region.factory_class">Org.hibernate.cache.EhCacheRegionFactory</ Property> < Propertyname= "Net.sf.ehcache.configurationResourceName">/hibernate-config/ehcache.xml</ Property> <!--Echo all executed SQL to stdout - < Propertyname= "Show_sql">True</ Property> <MappingResource= "Hibernate-config/domain/event.hbm.xml"/> <MappingResource= "Hibernate-config/domain/person.hbm.xml"/> <MappingResource= "Hibernate-config/domain/phonenumber.hbm.xml"/> <MappingResource= "Hibernate-config/domain/account.hbm.xml"/> <MappingResource= "Hibernate-config/domain/holidaycalendar.hbm.xml"/> <MappingResource= "Hibernate-config/domain/item.hbm.xml"/> </session-factory></hibernate-configuration>
Hibernate download package in configuration file path