The correct start tag for the entity mapping file for JPA 2.0 was
<entity-mappings version="1.0" xmlns="http://java.sun.com/xml/ns/persistence/orm" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm http://java.sun.com/xml/ns/persistence/orm_1_0.xsd">
What are the required fixes for JPA 2.1?
I tried
<entity-mappings version="2.1" xmlns="http://www.eclipse.org/eclipselink/xsds/persistence/orm">
But this gives an error:
There are no grammar restrictions in the document (DTD or XML Schema).
source share