diff --git a/pom.xml b/pom.xml
index 4ef35574a1b05fc115a64fb8d90b831c3418894b..f90ced80e071fe3df8c0cc715c7538ef7fb43483 100644
--- a/pom.xml
+++ b/pom.xml
@@ -96,6 +96,15 @@
 			<artifactId>derbytools</artifactId>
 			<version>10.15.2.0</version>
 		</dependency>
+		
+		<!-- https://mvnrepository.com/artifact/javax.annotation/javax.annotation-api -->
+		<dependency>
+		    <groupId>javax.annotation</groupId>
+		    <artifactId>javax.annotation-api</artifactId>
+		    <version>1.3.2</version>
+		</dependency>
+		
+				
 	</dependencies>
 	<build>
 		<plugins>
@@ -132,6 +141,27 @@
 					</execution>
 				</executions>
 			</plugin>
+			 <plugin>
+		        <groupId>org.bsc.maven</groupId>
+		        <artifactId>maven-processor-plugin</artifactId>
+		        <executions>
+		            <execution>
+		                <id>process</id>
+		                <goals>
+		                    <goal>process</goal>
+		                </goals>
+		                <phase>generate-sources</phase>
+		                <configuration>
+		                    <!-- source output directory -->
+		                    <outputDirectory>target/generated-sources/annotations</outputDirectory>
+		                    <processors>
+		                        <processor>org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor</processor>
+		                    </processors>
+		                    <overwrite>true</overwrite>
+		                </configuration>
+		            </execution>
+		        </executions>
+		    </plugin>
 			
 		</plugins>
 	</build>
diff --git a/src/main/java/module-info.java b/src/main/java/module-info.java
index e317d2bf19f7e7e4db92d2dd03a9e0fcd934e810..bf5f44dbd025cbfc23147662c593fff4249436f5 100644
--- a/src/main/java/module-info.java
+++ b/src/main/java/module-info.java
@@ -6,6 +6,7 @@ module koz01.java2.lab09 {
 		requires java.sql;
 		requires org.hibernate.orm.core;
 		requires java.compiler;
+		requires java.annotation;
 		opens koz01.java2.lab09 to org.hibernate.orm.core;
 
 }
\ No newline at end of file
diff --git a/src/main/resources/META-INF/persistence.xml b/src/main/resources/META-INF/persistence.xml
index c302c222f370be445dc8bb617275a3ee2ab68a56..7a2d5cb6dc87db55ef2171d6717d7f501a324849 100644
--- a/src/main/resources/META-INF/persistence.xml
+++ b/src/main/resources/META-INF/persistence.xml
@@ -20,7 +20,7 @@
    xsi:schemaLocation="
         http://java.sun.com/xml/ns/persistence
         http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
-   <persistence-unit name="primary" transaction-type="RESOURCE_LOCAL">
+   <persistence-unit name="lab09" transaction-type="RESOURCE_LOCAL">
       <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
       
       <!-- HSQL -->