CVC complex type errors

lemontartsue

New Member
I have imported a project from SVN. I am using eclipse, maven. Now I am getting around 200 errors related to cvc.complexType as bellow. Plz note that I already had other errors regarding to missed jars. I am not sure if that is a case here.
Mv9PA.png
More details about the errors:Code : \[code\]enter code here\[/code\] Related error: \[code\]enter code here\[/code\]cvc-complex-type.2.4.a: Invalid content was found starting with \[code\]enter code here\[/code\]element 'many-to-one'. One of '{"http://java.sun.com/xml/ns/ \[code\]enter code here\[/code\]persistence/orm":many-to-many, "http://java.sun.com/xml/ns/ \[code\]enter code here\[/code\]persistence/orm":element-collection, "http://java.sun.com/xml/ns/ \[code\]enter code here\[/code\]persistence/orm":embedded, "http://java.sun.com/xml/ns/ \[code\]enter code here\[/code\]persistence/orm":transient}' is expected.Code: \[code\]enter code here\[/code\] Error: \[code\]enter code here\[/code\]cvc-complex-type.3.2.2: Attribute 'nullable' is not allowed to appear in element 'basic'.Code : \[code\]enter code here\[/code\]DATETIMERelated Error: \[code\]enter code here\[/code\]Multiple annotations found at this line: - cvc-enumeration-valid: Value 'DATETIME' is not facet- valid with respect to enumeration '[DATE, TIME, TIMESTAMP]'. It must be a value from the enumeration. - cvc-type.3.1.3: The value 'DATETIME' of element 'temporal' is not valid.Update : I found out that it is related to JPA or Hibernate. Not sure though. So the schemas are http://java.sun.com/xml/ns/persistence/orm_2_0.xsd" version="2.0">Thanks.
 
Back
Top