Last active
December 15, 2015 07:28
-
-
Save sebersole/5223153 to your computer and use it in GitHub Desktop.
validation problem
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Caused by: javax.xml.stream.XMLStreamException: org.xml.sax.SAXParseException; lineNumber: 7; columnNumber: 10; cvc-complex-type.2.4.a: Invalid content was found starting with element 'entity-mappings'. One of '{"http://java.sun.com/xml/ns/persistence/orm":description, "http://java.sun.com/xml/ns/persistence/orm":persistence-unit-metadata, "http://java.sun.com/xml/ns/persistence/orm":package, "http://java.sun.com/xml/ns/persistence/orm":schema, "http://java.sun.com/xml/ns/persistence/orm":catalog, "http://java.sun.com/xml/ns/persistence/orm":access, "http://java.sun.com/xml/ns/persistence/orm":sequence-generator, "http://java.sun.com/xml/ns/persistence/orm":table-generator, "http://java.sun.com/xml/ns/persistence/orm":named-query, "http://java.sun.com/xml/ns/persistence/orm":named-native-query, "http://java.sun.com/xml/ns/persistence/orm":sql-result-set-mapping, "http://java.sun.com/xml/ns/persistence/orm":mapped-superclass, "http://java.sun.com/xml/ns/persistence/orm":entity, "http://java.sun.com/xml/ns/persistence/orm":embeddable}' is expected. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<entity-mappings 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 orm_1_0.xsd" | |
version="1.0" | |
> | |
<!-- use orm_1_0 on purpose (backward compatibility test --> | |
<package>org.hibernate.test.annotations.xml.ejb3</package> | |
<named-query name="find.the.light"> | |
<query>select l from Light l</query> | |
</named-query> | |
<entity class="Light" access="FIELD" metadata-complete="true"> | |
<attributes> | |
<id name="name"> | |
<column name="fld_id"/> | |
</id> | |
<basic name="power"></basic> | |
</attributes> | |
</entity> | |
</entity-mappings> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment