Apache OpenJPA
Go to file
Mark Struberg 260042ba51 OPENJPA-2764 fix tests with random behaviour
The behaviour was random due to the undefined order in which
real databases return data.
2019-01-02 09:58:03 +01:00
openjpa replace tabs with spaces - no functional change! 2018-10-28 13:07:42 +01:00
openjpa-all [OPENJPA-2752] libraries are updated to most recent versions 2018-10-18 12:38:31 +07:00
openjpa-examples Doc build with OpenJdk should be fixed 2018-12-06 16:51:53 +07:00
openjpa-features OPENJPA-2757 upgrade to xbean-asm7 for Java7 support 2018-11-10 21:33:02 +01:00
openjpa-integration [OPENJPA-2754] maxActive -> maxTotal (#24) 2018-11-16 13:48:40 +07:00
openjpa-jdbc [OPENJPA-2754] maxActive -> maxTotal (#24) 2018-11-16 13:48:40 +07:00
openjpa-jest replace tabs with spaces - no functional change! 2018-10-28 13:07:42 +01:00
openjpa-kernel [OPENJPA-2754] maxActive -> maxTotal (#24) 2018-11-16 13:48:40 +07:00
openjpa-lib call of svnversion is removed from build 2018-12-14 17:46:19 +07:00
openjpa-persistence [OPENJPA-2752] libraries are updated to most recent versions 2018-10-18 12:38:31 +07:00
openjpa-persistence-jdbc OPENJPA-2764 fix tests with random behaviour 2019-01-02 09:58:03 +01:00
openjpa-persistence-locking [OPENJPA-2754] maxActive -> maxTotal (#24) 2018-11-16 13:48:40 +07:00
openjpa-project Doc build with OpenJdk should be fixed 2018-12-06 16:51:53 +07:00
openjpa-slice [OPENJPA-2754] maxActive -> maxTotal (#24) 2018-11-16 13:48:40 +07:00
openjpa-tools OpenJdk documentation build is partially fixed 2018-12-03 23:39:28 +07:00
openjpa-xmlstore [OPENJPA-2752] libraries are updated to most recent versions 2018-10-18 12:38:31 +07:00
scripts [OPENJPA-2751] trailing white-spaces were removed 2018-10-02 12:32:32 +00:00
src/site [OPENJPA-2751] trailing white-spaces were removed 2018-10-02 12:32:32 +00:00
.gitignore add .idea to gitignore 2018-10-13 21:15:31 +02:00
LICENSE [OPENJPA-2751] trailing white-spaces were removed 2018-10-02 12:32:32 +00:00
NOTICE upgrade license year to - 2015 2015-04-03 19:38:01 +00:00
README.adoc improve our initial README 2019-01-02 09:33:28 +01:00
patchoj.py [OPENJPA-2751] trailing white-spaces were removed 2018-10-02 12:32:32 +00:00
pom.xml Disabling doclint to allow Javadoc building on Oracle JDK 2018-12-07 16:49:44 +01:00

README.adoc

= Apache OpenJPA - README

== Preface
Thank you for downloading this release of Apache OpenJPA.

Apache OpenJPA is an implementation of the Java Persistence API specification.


== License
The content of this repository is licensed under Apache License 2.0
http://www.apache.org/licenses/LICENSE-2.0

== Further Information

The following files can be found in the openjpa-project subdirectory:

* openjpa-project/BUILDING.txt
* openjpa-project/CHANGES.txt
* openjpa-project/RELEASE-NOTES.html

For documentation and project information, please visit our project site:
    http://openjpa.apache.org/


== Compiling

The best way to compile Apache OpenJPA yourself is to run the build against the default derby database.

 $> mvn clean install -Dsurefire.excludes.locking=**/*

== Testing against different Databases

The Apache OpenJPA project also contains a setup for testing against multiple databases.
The easiest way is to use Docker.
We assume that Docker is installed to be used from your current user.
The respective database imagehas to be started manually bofore starting the build.
The reason for not starting it as part of the build itself is to be able to look at the database content after the build did run.

To start e.g. a PostgreSQL Docker image you can simply invoke the following command.
Note the -N Maven option which stands for 'non-recursive'.
This is used because the docker container is configured only at the root project but not at his children.

 mvn -N -Ptest-mysql-docker docker:start

After that you can execute your tests with the respective Maven profile

 mvn clean install -Ptest-mysql-docker

Once the Docker image for the database is not needed any longer one can stop and remove it:

 mvn -N -Ptest-mysql-docker docker:stop
 mvn -N -Ptest-mysql-docker docker:remove


The following Maven profiles do exist so far:

* test-mysql-docker
* test-mariadb-docker
* test-postgresql-docker