[Database] up to the dream of a dream Activiti database connection

First activiti support link dm, we have to solve is how to configure: only need to modify two configuration files:

1.

The first configuration is jdbc: replacement drive, class names, connection strings, etc., are the following configuration:

clip_image001

I.e., it is meant herein: the connect string up into a dream.

2.

The second is activi own configuration (to find ativiti profile), specify the data type is forced Oracle (not the default configuration):

clip_image003

That is the meaning here is: Data Type to Oracle (in the long-term use, there is no problem; up to the dream of Oracle Compatibility do very well, a lot of associated framework, you can use a similar configuration)

Note 1 :.

If you are using a dialect package, also need to pay attention to modify the class name dialect package, as well as references dialect package:

Here is the configuration

datasource.driver=dm.jdbc.driver.DmDriver

datasource.url=jdbc:dm://localhost:5236

datasource.username=test

datasource.password=testcsdc1

hibernate.dialect=org.hibernate.dialect.Oracle10gDialect

The above-mentioned class names only modified connection string, also need to modify the last line:

hibernate.dialect= org.hibernate.dialect.DmDialect

Note 2:

The associated driver class name, where to look?

To access the database after installation dm jak packet carrying path:

Linux:

clip_image005

Window:

clip_image007

In short, as one of the most common java platform framework, its database independence to do better, and all the java-related configuration, the core is the picture below:

Guess you like

Origin blog.51cto.com/12196785/2470697