add new module

This commit is contained in:
Krzysztof Majewski 2019-07-26 12:33:04 +02:00
parent ee6012a4de
commit f1d68f74f6
6 changed files with 132 additions and 0 deletions

View File

@ -0,0 +1 @@
# Relevant Articles

View File

@ -0,0 +1,115 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>java-jpa-2</artifactId>
<name>java-jpa-2</name>
<parent>
<artifactId>parent-modules</artifactId>
<groupId>com.baeldung</groupId>
<version>1.0.0-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<dependencies>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>${hibernate.version}</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-jpamodelgen</artifactId>
<version>${hibernate.version}</version>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<version>${h2.version}</version>
</dependency>
<!--Compile time JPA API-->
<dependency>
<groupId>javax.persistence</groupId>
<artifactId>javax.persistence-api</artifactId>
<version>${javax.persistence-api.version}</version>
</dependency>
<!--Runtime JPA implementation-->
<dependency>
<groupId>org.eclipse.persistence</groupId>
<artifactId>eclipselink</artifactId>
<version>${eclipselink.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>${postgres.version}</version>
<scope>runtime</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<compilerArgument>-proc:none</compilerArgument>
</configuration>
</plugin>
<plugin>
<groupId>org.bsc.maven</groupId>
<artifactId>maven-processor-plugin</artifactId>
<version>3.3.3</version>
<executions>
<execution>
<id>process</id>
<goals>
<goal>process</goal>
</goals>
<phase>generate-sources</phase>
<configuration>
<outputDirectory>target/metamodel</outputDirectory>
<processors>
<processor>org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor</processor>
</processors>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>target/metamodel</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<properties>
<hibernate.version>5.4.0.Final</hibernate.version>
<eclipselink.version>2.7.4-RC1</eclipselink.version>
<postgres.version>42.2.5</postgres.version>
<javax.persistence-api.version>2.2</javax.persistence-api.version>
</properties>
</project>

View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
</pattern>
</encoder>
</appender>
<root level="INFO">
<appender-ref ref="STDOUT" />
</root>
</configuration>

View File

@ -29,6 +29,7 @@
<module>java-cockroachdb</module> <module>java-cockroachdb</module>
<module>java-jdbi</module> <module>java-jdbi</module>
<module>java-jpa</module> <module>java-jpa</module>
<module>java-jpa-2</module>
<module>java-mongodb</module> <module>java-mongodb</module>
<module>jnosql</module> <module>jnosql</module>
<module>liquibase</module> <module>liquibase</module>

View File

@ -988,6 +988,7 @@
<module>persistence-modules/hibernate5</module> <module>persistence-modules/hibernate5</module>
<module>persistence-modules/hibernate-mapping</module> <module>persistence-modules/hibernate-mapping</module>
<module>persistence-modules/java-jpa</module> <module>persistence-modules/java-jpa</module>
<module>persistence-modules/java-jpa-2</module>
<module>persistence-modules/java-mongodb</module> <module>persistence-modules/java-mongodb</module>
<module>persistence-modules/jnosql</module> <module>persistence-modules/jnosql</module>
@ -1500,6 +1501,7 @@
<module>persistence-modules/hibernate5</module> <module>persistence-modules/hibernate5</module>
<module>persistence-modules/java-jpa</module> <module>persistence-modules/java-jpa</module>
<module>persistence-modules/java-jpa-2</module>
<module>persistence-modules/java-mongodb</module> <module>persistence-modules/java-mongodb</module>
<module>persistence-modules/jnosql</module> <module>persistence-modules/jnosql</module>