thank you for your answer, Rick you'll find the persistence.xml here: http://apache.pastebin.com/m4a91654f the highlighted class is that one that netbeans has introduced when it generated it from the table TIMESHEET_COMMENT in the database eHour.
you'll find the Java stack dump here: http://apache.pastebin.com/m7641c82f it happens when I try to build the maven project with netbeans build you'll find the pom.xml here: http://apache.pastebin.com/m6f437735 I mentioned running openjpa:enhance the Java stackdump you can find here: http://apache.pastebin.com/m2da3ff7d Rick Curtis wrote: > Can we get some more info? Your persistence.xml file along with the actual > error message would be a good start. > > -Rick > > > I'm working successfully on my first jpa project, > using netbeans, maven and openjpa. > > Now I added another entity class by applying the generator from the pull > down menu of a package "New/Entity Classes from Database ..." > > It generated two entity classes because the key has multiple colums: > Entity and EntityPK. > > When I built the project again I get the error: > > "The type "class EntityPK" has not been enhanced." > > And the build stops. > > I looked in the documentation for "enhancement" and found it to be an > important subject but was not able to understand why a class shall be > enhanced in order for the project to get built. > > Before I added this entity to the other 5 - one with a primary key class > as well - I didn't had this problem and everything worked smooth. Now I > got stuck. > > What shall I look into to overcome this problem? > > Rolf > > p.s. When I ran the maven goal openjpa:enhance an exception occurs while > parsing a non-entity class, telling me that a class can not be found > that I provide at runtime. Honestly, I do not know what I was doing here. > > > > >
