Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ethlo/eclipselink-maven-plugin

Eclipselink JPA Maven plugin, supporting static weaving, canonical model generation, and DDL generation.
https://github.com/ethlo/eclipselink-maven-plugin

eclipselink jpa maven-plugin model-generation weaving

Last synced: 1 day ago
JSON representation

Eclipselink JPA Maven plugin, supporting static weaving, canonical model generation, and DDL generation.

Awesome Lists containing this project

README

        

eclipselink-maven-plugin
=========================
[![Maven Central](https://img.shields.io/maven-central/v/com.ethlo.persistence.tools/eclipselink-maven-plugin.svg)](http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22com.ethlo.persistence.tools%22%20AND%20a%3A%22eclipselink-maven-plugin%22)
[![Hex.pm](https://img.shields.io/hexpm/l/plug.svg)](LICENSE)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/5a0f641b2f944f4fbf46998fe9d184dc)](https://www.codacy.com/app/morten/eclipselink-maven-plugin?utm_source=github.com&utm_medium=referral&utm_content=ethlo/eclipselink-maven-plugin&utm_campaign=Badge_Grade)

Eclipselink JPA maven plugin made to simplify life of the [Eclipselink](http://www.eclipse.org/eclipselink/) JPA developer.

## Features
* No need to setup special APT processor for canonical model generation, just use goal ```modelgen```.
* Allows you to get rid of the ```persistence.xml``` file as the classes are detected automatically and a persistence.xml file is generated.
* If the ```persistence.xml``` file already exists, missing ```...``` entries are added automatically. This allows you to have a basic configuration, but you do not have to manually add class entries.

## Versions
* 3.x releases uses the jakarta.* packages
* 2.x releases uses the javax.* packages

## Usage

Static weaving:
```xml

com.ethlo.persistence.tools
eclipselink-maven-plugin
${eclipselink-maven-plugin.version}


process-classes

weave


```

Meta-model generation:
```xml

com.ethlo.persistence.tools
eclipselink-maven-plugin
${eclipselink-maven-plugin.version}


generate-sources

modelgen


```

Both weave, DDL and meta-model generation and setting `basePackages`:
```xml

com.ethlo.persistence.tools
eclipselink-maven-plugin
${eclipselink-maven-plugin.version}


weave
process-classes

weave



ddl
process-classes

ddl


mysql



modelgen
generate-sources

modelgen





org.my.projectA
org.my.projectB

```