jpa-metamodels-with-maven-example

parent pom for jinahya

License

License

Categories

Categories

Maven Build Tools
GroupId

GroupId

com.github.jinahya
ArtifactId

ArtifactId

jpa-metamodels-with-maven-example
Last Version

Last Version

0.5.9
Release Date

Release Date

Type

Type

jar
Description

Description

jpa-metamodels-with-maven-example
parent pom for jinahya
Project URL

Project URL

https://github.com/jinahya/jpa-metamodels-with-maven-example
Source Code Management

Source Code Management

https://github.com/jinahya/jpa-metamodels-with-maven-example

Download jpa-metamodels-with-maven-example

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.jinahya/jpa-metamodels-with-maven-example/ -->
<dependency>
    <groupId>com.github.jinahya</groupId>
    <artifactId>jpa-metamodels-with-maven-example</artifactId>
    <version>0.5.9</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.jinahya/jpa-metamodels-with-maven-example/
implementation 'com.github.jinahya:jpa-metamodels-with-maven-example:0.5.9'
// https://jarcasting.com/artifacts/com.github.jinahya/jpa-metamodels-with-maven-example/
implementation ("com.github.jinahya:jpa-metamodels-with-maven-example:0.5.9")
'com.github.jinahya:jpa-metamodels-with-maven-example:jar:0.5.9'
<dependency org="com.github.jinahya" name="jpa-metamodels-with-maven-example" rev="0.5.9">
  <artifact name="jpa-metamodels-with-maven-example" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.jinahya', module='jpa-metamodels-with-maven-example', version='0.5.9')
)
libraryDependencies += "com.github.jinahya" % "jpa-metamodels-with-maven-example" % "0.5.9"
[com.github.jinahya/jpa-metamodels-with-maven-example "0.5.9"]

Dependencies

provided (1)

Group / Artifact Type Version
javax.persistence : javax.persistence-api jar 2.2

test (1)

Group / Artifact Type Version
org.testng : testng jar 6.14.3

Project Modules

There are no modules declared in this project.

jpa-metamodels-with-maven-example

CircleCI Build Status

An example generates JPA Metamodels with Apache Maven.

Build Profiles

There are eight profiles prepared for four providers which each has to methods for generating JPA static metamodels.

EclipseLink

eclipselink-dependency

Uses org.eclipselink.persistence:org.eclipselink.persistence.jpa.modelgen.processor as an optional dependency.

eclipselink-processor

Uses org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor from org.eclipselink.persistence:org.eclipselink.persistence.jpa.modelgen.processor as an annotation processor.

  • Note that a compiler argument(-Aeclipselink.persistencexml) of the location of persistence.xml is required.

Hibernate

hibernate-dependency

Uses org.hibernate:hibernate-jpamodelgen as an optional dependency.

hibernate-processor

Uses org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor from org.hibernate:hibernate-jpamodelgen as an annotation processor.

  • Note that javax.xml.bind.jaxb-api is required.

OpenJPA

openjpa-dependency

Uses org.apache.openjpa:openjpa as an optional dependency.

  • Note that javax.annotation:javax:annotation-api is required.
  • And a compier argument(-Aopenjpa.metamodel) must be set.

openjpa-processor

Uses org.apache.openjpa.persistence.meta.AnnotationProcessor6 of org.apache.openjpa:openjpa as an annotation processor.

DataNucleus

datanucleus-dependency

Uses org.datanucleus:datanucleus-jpa-query as an optional dependency.

datanucleus-processor

Uses org.datanucleus.jpa.query.JPACriteriaProcessor from org.datanucleus:datanucleus-jpa-query as an annotation processor.

Build'em all

Try to execute build-all-profiles.sh for convenience.

Versions

Version
0.5.9