/openfire-bind

Binding classes for Openfire

Primary LanguageJavaApache License 2.0Apache-2.0

openfire-bind

Build Status Maven metadata URI Javadocs

Tesitng against exsiting databases

All test cases only read from database. No writing functionality included.

common properties

name description
jdbc.driver.version version of the target driver artifact.
jdbc.driver driver class name
jdbc.url JDBC url of the target database
jdbc.user username of the database
jdbc.password password of the database
xmpp.domain XMPP domain name

<database> and jdbc.driver.version

name description
mysql mysql:mysql-connector-java:${jdbc.driver.version}

JPA

$ mvn -Pjpa,<provider>,<database> \
      -Dpersistence.provider.version=... \
      -Djdbc.driver.version= ...\
      -Djdbc.driver=...\
      -Djdbc.user=...\
      -Djdbc.password=....
      clean
      test

properties

name description
persistence.provider.version version of the target persistence provider artifact

<provider> and persistence.provider.version

name artifact
eclipselink org.eclipse.persistence:eclipselink:${persistence.provider.version}
hibernate org.hibernate:hibernate-core:${persistence.provider.version}

examples

eclipselink / mysql

$ mvn -Pjpa,eclipselink,mysql \
      -Dpersistence.provider.version=2.7.0 \
      -Djdbc.driver.version=5.1.44 \
      -Djdbc.driver=com.mysql.jdbc.Driver \
      -Djdbc.url="jdbc:mysql://xxx.xxx.xxx.xxx:3306/yyy" \
      -Djdbc.user=some \
      -Djdbc.password = some \
      clean
      test

MyBatis