• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSE Application with JPA 2.1

 
Markus Schmider
Ranch Hand
Posts: 132
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am trying to build an JSE application with JPA using hibernate and maven.

pom dependencies.


persistence.xml in /src/main/resources/META-INF:


With that I get

Declaration of element "persistence" cannot be found

Any help would be greatly appreciated.
 
jack lumber
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hibernate-entitymanager version 4.0.1 implements JPA version 2.0 and not 2.1.
Try with hibernate 4.3.5.Final.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic