Hibernate + Maven + Glassfish

Asked

Viewed 118 times

1

I have a Maven Project, which uses Hibernate, and has all the dependencies ok.

I’ve already created the connection pool in glassfish. The problem is that even the class mapped with the annotations of Hibernate hint giving error saying it should be mapped by the persistent.xml, this file exists and is configured correctly and the project was faceted with JPA, this is the first time I use Maven is necessary to use some additional settings, someone has idea of what may be occurring?

  • What error happens when climbing the server? You can add the error to the post?

  • At the moment I can not send you, I am not with the computer as soon as possible send you the error is not a server log is an error generated by the eclipse inspector.

  • The problem pointed out by the Eclipse inspector is: Class "com.financeiro.Pessoa" is Managed, but is not Listed in the persistence.xml file

  • The error message is clear: all entities need to be listed in persistence.xml. In this same file you can also set the attribute to false exclude-unlisted-classes, so you don’t need to list the entities. Leave me a message if you still have a problem I can post a reply.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.