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: 11 months ago
JSON representation
Eclipselink JPA Maven plugin, supporting static weaving, canonical model generation, and DDL generation.
- Host: GitHub
- URL: https://github.com/ethlo/eclipselink-maven-plugin
- Owner: ethlo
- License: apache-2.0
- Created: 2013-01-16T15:26:25.000Z (over 13 years ago)
- Default Branch: main
- Last Pushed: 2024-05-07T09:44:21.000Z (about 2 years ago)
- Last Synced: 2025-03-28T07:51:11.325Z (about 1 year ago)
- Topics: eclipselink, jpa, maven-plugin, model-generation, weaving
- Language: Java
- Homepage:
- Size: 136 KB
- Stars: 33
- Watchers: 10
- Forks: 16
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
eclipselink-maven-plugin
=========================
[](http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22com.ethlo.persistence.tools%22%20AND%20a%3A%22eclipselink-maven-plugin%22)
[](LICENSE)
[](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
```