<? XML version = '1. 0' encoding = 'utf-8'?>
<! Doctype hibernate-configuration public
"-// Hibernate/hibernate configuration DTD 3.0 // en"
Http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd>
<Hibernate-configuration>
<Session-factory>
<! -- JDBC Connection Properties -->
<Property name = "hibernate. dialect"> org. hibernate. dialect. mysqlinnodbdialect </property>
<Property name = "hibernate. Connection. driver_class"> com. MySQL. JDBC. Driver </property>
<Property name = "hibernate. Connection. url"> JDBC: mysql: // localhost: 3306/core_jbpm? Characterencoding = gb2312 </property>
<Property name = "hibernate. Connection. username"> root </property>
<Property name = "hibernate. Connection. Password"> root </property>
<Property name = "connection. autocommit"> true </property>
<Property name = "connection. Pool. Size"> 30 </property>
<Property name = "show_ SQL"> true </property> <! -- Set the provider class of the level-2 Cache plug-in ehcache -->
<Property name = "hibernate. cache. provider_class">
Org. hibernate. cache. ehcacheprovider
</Property>
<! -- Enable "query cache" here to disable Level 2 Cache -->
<Property name = "hibernate. cache. use_query_cache">
False
</Property>
<Property name = "hibernate. show_ SQL"> true </property>
<! --####################################### ##### -->
<! -- # Mapping Files with external dependencies # -->
<! --####################################### ##### -->
<! -- Following mapping file has a dependendy on -->
<! -- 'Bsh-{version}. jar'. -->
<! -- Uncomment this if you don't have bsh on your -->
<! -- Classpath. You won't be able to use the -->
<! -- Script element in process definition files -->
<Mapping Resource = "org/jbpm/graph/Action/script. HBM. xml"/>
<! -- Following Mapping Files have a dependendy on -->
<! -- 'Jbpm-identity-{version}. jar', Mapping Files -->
<! -- Of the pluggable jbpm identity component. -->
<! -- Comment out the following 3 lines if you don't -->
<! -- Want to use the default jbpm identity mgmgt -->
<! -- Component -->
<Mapping Resource = "org/jbpm/identity/user. HBM. xml"/>
<Mapping Resource = "org/jbpm/identity/group. HBM. xml"/>
<Mapping Resource = "org/jbpm/identity/membership. HBM. xml"/>
<! -- #######################-->
<! -- # Jbpm Mapping Files # -->
<! -- #######################-->
<! -- Hql queries and type defs -->
<Mapping Resource = "org/jbpm/DB/hibernate. Queries. HBM. xml"/>
</Session-factory>
</Hibernate-configuration>