<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: The hibernate jpamodelgen cannot generate entities extended from a dependency project</title><link>https://answers.axonivy.com/questions/4407/the-hibernate-jpamodelgen-cannot-generate-entities-extended-from-a-dependency-project</link><description>&lt;p&gt;I have 2 project A and B. Project A dependency project B.
Project B have a "ToggleableEntity" class and Project A have a "OrganizationalUnit" class&lt;/p&gt;
&lt;p&gt;"OrganizationalUnit" class extend "ToggleableEntity" class.
When I build with maven and using hibernate jpamodelgen to generate "OrganizationalUnit_" class then ToggleableEntity missed in "OrganizationalUnit_" class&lt;/p&gt;
&lt;p&gt;The pom.xml file
&lt;img alt="alt text" src="https://answers.axonivy.com/upfiles/demo_3.JPG"&gt;&lt;/p&gt;
&lt;p&gt;The result:
&lt;img alt="alt text" src="https://answers.axonivy.com/upfiles/demo_1.png"&gt;&lt;/p&gt;
&lt;p&gt;The expected 
&lt;img alt="alt text" src="https://answers.axonivy.com/upfiles/demo_4.JPG"&gt;&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/4407/the-hibernate-jpamodelgen-cannot-generate-entities-extended-from-a-dependency-project" rel="self"></atom:link><language>en</language><lastBuildDate>Sun, 23 Feb 2020 23:44:37 -0500</lastBuildDate><item><title>Answer by anhle</title><link>https://answers.axonivy.com/questions/4407/the-hibernate-jpamodelgen-cannot-generate-entities-extended-from-a-dependency-project/4410</link><description>&lt;p&gt;Hello Reguel Wermelinger.
I used maven-compiler-plugin version 3.8.0 instead of version 3.5.0
But the maven has error as my question before. You can check link below:
&lt;a href="https://answers.axonivy.com/questions/4400/some-libraries-in-axon-ivy-libraries-can-not-find-when-build-with-maven"&gt;https://answers.axonivy.com/questions/4400/some-libraries-in-axon-ivy-libraries-can-not-find-when-build-with-maven&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">anhle</dc:creator><pubDate>Sun, 23 Feb 2020 23:44:37 -0500</pubDate><guid>https://answers.axonivy.com/questions/4407/the-hibernate-jpamodelgen-cannot-generate-entities-extended-from-a-dependency-project/4410</guid></item><item><title>Comment by Reguel Wermelinger on anhle's question</title><link>https://answers.axonivy.com/questions/4407/the-hibernate-jpamodelgen-cannot-generate-entities-extended-from-a-dependency-project#4408</link><description>&lt;p&gt;the maven-compiler-plugin looks dated... 3.5.0 is quite old and very likely not able to handle java 11 correctly (which is a must and the default language level on ivy 8.0 LTS).&lt;/p&gt;
&lt;p&gt;So to starts with, upgrade the maven-compiler-plugin: &lt;a href="https://stackoverflow.com/a/51586202"&gt;https://stackoverflow.com/a/51586202&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;There are indicator in the web, that also dependencies to annotations must be adjusted in order to comply with java 11: &lt;a href="https://stackoverflow.com/questions/58217544/hibernate-jpamodelgen-5-4-6-final-fails-on-jdk11"&gt;https://stackoverflow.com/questions/58217544/hibernate-jpamodelgen-5-4-6-final-fails-on-jdk11&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Fri, 21 Feb 2020 08:35:26 -0500</pubDate><guid>https://answers.axonivy.com/questions/4407/the-hibernate-jpamodelgen-cannot-generate-entities-extended-from-a-dependency-project#4408</guid></item></channel></rss>