Skip to content
Snippets Groups Projects
Commit 3835966b authored by Jan Kožusznik's avatar Jan Kožusznik
Browse files

Add annotations processor.

parent e33675c8
Branches
No related merge requests found
......@@ -71,7 +71,14 @@
<artifactId>hibernate-core</artifactId>
<version>5.4.30.Final</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.derby/derby -->
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-jpamodelgen</artifactId>
<scope>provided</scope>
<version>5.4.30.Final</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.derby/derby -->
<dependency>
<groupId>org.apache.derby</groupId>
<artifactId>derby</artifactId>
......@@ -89,8 +96,34 @@
<artifactId>derbytools</artifactId>
<version>10.15.2.0</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>3.2.0</version>
<configuration>
<sources>
<source>target/generated-sources/annotations</source>
</sources>
</configuration>
<executions>
<execution>
<id>add-source</id>
<phase>process-resources</phase>
<goals>
<goal>add-source</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
package koz01.java2.lab09;
import javax.persistence.Entity;
@Entity
public class Student {
private String firstName;
......
......@@ -5,7 +5,7 @@ module koz01.java2.lab09 {
requires lombok;
requires java.sql;
requires org.hibernate.orm.core;
requires java.compiler;
opens koz01.java2.lab09 to org.hibernate.orm.core;
}
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment