]
Dmitry Geraskov commented on JBIDE-7241:
----------------------------------------
The issue is marked as Fixed in Hibernate 3.5.6. And we use this version for building
console configuration. If you anyway has the problem, please add test case here.
orm.xml version="2.0" doesn't work
----------------------------------
Key: JBIDE-7241
URL:
https://jira.jboss.org/browse/JBIDE-7241
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: Hibernate
Affects Versions: 3.2.0.M2
Environment: jbosstools-3.2.0.M2.aggregate-Update-2010-09-08_17-17-54-H243a.zip
Reporter: Juergen Zimmermann
Assignee: Dmitry Geraskov
Fix For: 3.2.0.Beta2
I'm using an orm.xml file with a JPA 2.0 declaration :
<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
http://java.sun.com/xml/ns/persistence/orm_2_0.xsd"
version="2.0">
</entity-mappings>
When I create a Hibernate configuration (database connection is reused from DTP and
property file is an existing one), then I get the following stacktrace. I thought that
https://jira.jboss.org/browse/JBIDE-6842 had fixed this issue.
org.hibernate.console.HibernateConsoleRuntimeException: Could not create JPA based
Configuration
Could not create JPA based Configuration
<No message>
java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException: <no message>
java.lang.reflect.InvocationTargetException
javax.persistence.PersistenceException: [PersistenceUnit: hskaPersistence] Unable to
configure EntityManagerFactory
[PersistenceUnit: hskaPersistence] Unable to configure EntityManagerFactory
org.hibernate.MappingException: Error while parsing file: META-INF/orm.xml
Error while parsing file: META-INF/orm.xml
org.hibernate.MappingException: invalid mapping
invalid mapping
org.xml.sax.SAXParseException: cvc-complex-type.3.1: Value '2.0' of attribute
'version' of element 'entity-mappings' is not valid with respect to the
corresponding attribute use. Attribute 'version' has a fixed value of
'1.0'.
cvc-complex-type.3.1: Value '2.0' of attribute 'version' of element
'entity-mappings' is not valid with respect to the corresponding attribute use.
Attribute 'version' has a fixed value of '1.0'.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: