[JBoss JIRA] Created: (JBIDE-7241) orm.xml version="2.0" doesn't work
by Juergen Zimmermann (JIRA)
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: Max Andersen
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.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 4 months
[JBoss JIRA] Created: (JBIDE-5703) Hibernate Reverse Engineering Editor should show multiple catalogs/schemas from a MySQL database
by Pieter Hartog (JIRA)
Hibernate Reverse Engineering Editor should show multiple catalogs/schemas from a MySQL database
------------------------------------------------------------------------------------------------
Key: JBIDE-5703
URL: https://jira.jboss.org/jira/browse/JBIDE-5703
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Components: Hibernate
Affects Versions: 3.1.0.CR1
Reporter: Pieter Hartog
Priority: Minor
MySQL is funny with catalogs and schemas. It doesn't support schemas like most other databases do. It's just called 'databases'.
When you try to create a reveng.xml file using the Hibernate Reverse Engineering Editor, you can't get multiple databases / schemas to show up.
It looks like the wizard looks at the hibernate.connection.url property in the hibernate-console.properties file. However, when I leave out the name of the database (e.g. jdbc:mysql://localhost:3306) without the database, the wizard does not return any tables.
When you leave out the default database (i.e. schema) name in the connection.url, you should see all databases/ schemas for that one connection.
When a user selects multiple schemas, the resulting reveng.xml file should have one <schema-selection ...> element for each schema the user wants to map tables from.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 4 months
[JBoss JIRA] Created: (JBIDE-5826) Incorrect work of EL and CDI validator for action Validate
by Viacheslav Kabanovich (JIRA)
Incorrect work of EL and CDI validator for action Validate
----------------------------------------------------------
Key: JBIDE-5826
URL: https://jira.jboss.org/jira/browse/JBIDE-5826
Project: Tools (JBoss Tools)
Issue Type: Bug
Affects Versions: 3.1.0.CR1
Reporter: Viacheslav Kabanovich
Assignee: Alexey Kazakov
Fix For: 3.1.0.CR2
1. Switch off automatic build.
2. Create 2 seam projects.
3. Build them manually.
4. Open an xhtml of the first project.
5. Add some correct EL in it, and run Validate on that file.
6. Repeat that several times corrupting and fixing EL and running Validate to make sure that it is ok.
7. Open an xhtml of the second project.
8. Try to do the same as with the first xhtml. Make sure that action Validate does not work.
9. Return to the first xhtml. Make sure that action Validate works.
It looks like action Validate works only for the project on which it was run first.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 4 months
[JBoss JIRA] Created: (JBIDE-6718) The import org.jboss.tools.cdi.text.ext.hyperlink.EventHyperlinkDetector cannot be resolved in org.jboss.tools.cdi.text.ext.test.EventHyperlinkDetectorTest.java
by Nick Boldt (JIRA)
The import org.jboss.tools.cdi.text.ext.hyperlink.EventHyperlinkDetector cannot be resolved in org.jboss.tools.cdi.text.ext.test.EventHyperlinkDetectorTest.java
----------------------------------------------------------------------------------------------------------------------------------------------------------------
Key: JBIDE-6718
URL: https://jira.jboss.org/browse/JBIDE-6718
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: cdi (jsr-299)
Affects Versions: 3.2.0.M2
Reporter: Nick Boldt
Assignee: Alexey Kazakov
(default-compile) on project org.jboss.tools.cdi.text.ext.test: Compilation failure: Compilation failure:
/mnt/hudson_workspace/workspace/jbosstools-3.2.0.M2.continuous/sources/cdi/tests/org.jboss.tools.cdi.text.ext.test/src/org/jboss/tools/cdi/text/ext/test/EventHyperlinkDetectorTest.java (at line 6):[-1,-1]
import org.jboss.tools.cdi.text.ext.hyperlink.EventHyperlinkDetector;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The import org.jboss.tools.cdi.text.ext.hyperlink.EventHyperlinkDetector cannot be resolved
/mnt/hudson_workspace/workspace/jbosstools-3.2.0.M2.continuous/sources/cdi/tests/org.jboss.tools.cdi.text.ext.test/src/org/jboss/tools/cdi/text/ext/test/EventHyperlinkDetectorTest.java (at line 26):[-1,-1]
checkRegions("JavaSource/org/jboss/jsr299/tck/tests/event/bindingTypes/EventEmitter.java", regionList, new EventHyperlinkDetector());
^^^^^^^^^^^^^^^^^^^^^^
EventHyperlinkDetector cannot be resolved to a type
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 4 months