Takže tady je řešení.
Nahradit
<hibernate-configuration
xmlns="https://www.hibernate.org/xsd/hibernate-configuration"
xsi:schemaLocation="https://www.hibernate.org/xsd/hibernate-configuration hibernate-configuration-4.0.xsd"
xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance">
s
<hibernate-configuration>
a přidejte níže uvedený kód na začátek souboru.
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"https://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
Také v konfiguračním souboru nahraďte <mapping resource=...> na <mapping class=...>