Skip to content

KrailOrg/krail-jpa

Repository files navigation

krail-jpa

License Gitter Build Status Coverage Status

This is a module for use with Krail, a rapid development framework based around Vaadin 8.

This module provides JPA capability.

Most of the functionality is provided by Apache Onami Persist, but with some additional Vaadin specific capability, and Krail specific generic DAOs.

In order to provide the DAOs, the onami-persist source is included and slightly modified.


Notice


This library is no longer supported. The chosen direction for Krail is towards distributed systems, microservices and NoSql.
This version of the library works at version 0.14.1.0, although some tests have been disabled for want of some missing setup.

If anyone wants to take up maintaining this library, they would be welcome to do so.


Build

In order for this to build, a gradle.properties file is required, in your gradle user home directory (see Gradle documentation). Because the file contains API keys, it cannot be held in the project directory.

The gradle.properties file must contain the following properties, but the values need not be valid:

bintrayKey=abccded

There is an open issue for this.

Then:

./gradlew build

Features

  • Support for multiple persistence units
  • Support for JPAContainer configuration and creation in a Guice / Onami environment
  • Assisted persistence unit configuration, in Guice modules (in addition to persistence.xml)
  • Generic DAOs, for single and multiple statements within a transaction
  • Base DAOs for Krail I18N and Option

Download

Gradle

repositories {
	jcenter()
}
'uk.q3c.krail:krail-jpa:0.14.0.0'

Maven

<repository>
	<id>jcenter</id>
	<url>http://jcenter.bintray.com</url>
</repository>

<dependency>
	<groupId>uk.q3c.krail</groupId>
	<artifactId>krail-jpa</artifactId>
	<version>0.14.0.0/version>
</dependency>

Direct

Download