Analysis of jbpm. hibernate. cfg. xml Core configuration file

Source: Internet
Author: User
Tags jbpm

[Html]
Note: jbpm uses hibernate to connect to the database by default. The driver package of the two databases is mysql5 by default.

Note: jbpm uses hibernate to connect to the database by default. The driver package of the two databases is mysql5 by default. [html]
<? 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>

<! -- Database connection information -->

<? 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>
 
<! -- Database connection information --> [html]
<! -- Pay attention to the usage of <SPAN style = "FONT-FAMILY: Arial, Helvetica, sans-serif"> org. hibernate. dialect. mySQL5InnoDBDialect. Otherwise, some inexplicable exceptions may occur. </SPAN> <SPAN style = "FONT-FAMILY: Arial, Helvetica, sans-serif" >></SPAN>
<Property name = "hibernate. dialect"> org. hibernate. dialect. MySQL5InnoDBDialect </property>

<! -- Use org. hibernate. dialect. MySQL5InnoDBDialect as much as possible. Otherwise, some inexplicable exceptions may occur. -->
<Property name = "hibernate. dialect"> org. hibernate. dialect. MySQL5InnoDBDialect </property>
[Html]
<! -- Note that the name of the driver class should be <SPAN style = "FONT-FAMILY: Arial, Helvetica, sans-serif"> com. mysql. jdbc. driver </SPAN> <SPAN style = "FONT-FAMILY: Arial, Helvetica, sans-serif"> --> </SPAN>

<! -- Note that the name of the Driver class should be "com. mysql. jdbc. Driver" --> [html] view plaincopyprint?
<Property name = "hibernate. connection. driver_class"> com. mysql. jdbc. Driver </property>
<Property name = "hibernate. connection. url"> jdbc: mysql: // jbpm4_njupt </property>
<Property name = "hibernate. connection. username"> root </property>
<Property name = "hibernate. connection. password"> njupt </property>

<! -- For other configurations, run the following code to automatically create a table -->
<Property name = "hibernate. hbm2ddl. auto"> update </property>

<! -- Import the JBPM ing file -->
<Mapping resource = "jbpm. repository. hbm. xml"/>
<Mapping resource = "jbpm.exe cution. hbm. xml"/>
<Mapping resource = "jbpm. history. hbm. xml"/>
<Mapping resource = "jbpm. task. hbm. xml"/>
<Mapping resource = "jbpm. identity. hbm. xml"/>
 
 

 

</Session-factory>
T;/hibernate-configuration>

<Property name = "hibernate. connection. driver_class"> com. mysql. jdbc. Driver </property>
<Property name = "hibernate. connection. url"> jdbc: mysql: // jbpm4_njupt </property>
<Property name = "hibernate. connection. username"> root </property>
<Property name = "hibernate. connection. password"> njupt </property>

<! -- For other configurations, run the following code to automatically create a table -->
<Property name = "hibernate. hbm2ddl. auto"> update </property>

<! -- Import the JBPM ing file -->
<Mapping resource = "jbpm. repository. hbm. xml"/>
<Mapping resource = "jbpm.exe cution. hbm. xml"/>
<Mapping resource = "jbpm. history. hbm. xml"/>
<Mapping resource = "jbpm. task. hbm. xml"/>
<Mapping resource = "jbpm. identity. hbm. xml"/>



</Session-factory>
</Hibernate-configuration>


 

Related Article

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.