| Using this xml:
<persistence version="2.1" xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd">
<persistence-unit name="unitName" transaction-type="RESOURCE_LOCAL">
<exclude-unlisted-classes>false</exclude-unlisted-classes>
<properties>
<property name="hibernate.archive.autodetection" value="true"/>
<property name="javax.persistence.jdbc.url" value="someworkingurl"/>
<property name="javax.persistence.jdbc.user" value="user"/>
<property name="javax.persistence.jdbc.driver" value="com.microsoft.sqlserver.jdbc.SQLServerDriver"/>
<property name="javax.persistence.jdbc.password" value="pass"/>
</properties>
<description>hello</description>
</persistence-unit>
</persistence>
Hibernate fails to load when calling Persistence.createEntityManagerFactory("unitName"); Jars in Classpath are hibernate-core-5.2.13.Final hibernate-jpa-2.1-api-1.0.2.Final hibernate-commons-annotations-5.0.1.Final If I remove <description> tag, ORM starts up. To me it seems Hibernate is trying to parse my xml according to something else than 2.1 spec, but dunno what's really going on. |