Disable secondary cache in the hibernate. cfg. xml configuration file

Source: Internet
Author: User

<? 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>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.