五、创建JBPM所需要的表

1、创建hibernate配置文件

<hibernate-configuration>

<session-factory>

    <property name="hibernate.dialect">org.hibernate.dialect.Oracle10gDialect</property>
    <property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
    <property name="hibernate.connection.url">jdbc:oracle:thin:@127.0.0.1:1521:orcl</property>
    <property name="hibernate.connection.username">jbpm</property>
    <property name="hibernate.connection.password">jbpm</property>

     //好像要求一定要有缓存
    <property name="hibernate.cache.provider_class">org.hibernate.cache.HashtableCacheProvider</property>


    jbpm的映射文件...

    ....

</session-factory>

</hibernate-configuration>


2、

    @Test
    public void createJbpmTabTest(){
       
        //默认从classpath中查找名为hibernate.cfg.xml的配置文件
        JbpmConfiguration configuration = JbpmConfiguration.getInstance();
       
        //创建表
        configuration.createSchema();
    }

你可能感兴趣的:(jbpm)