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