[jbosstools-issues] [JBoss JIRA] Created: (JBIDE-1544) When a "Default Schema" is specified Seam generates a project with errors
Alexandros Karypidis (JIRA)
jira-events at lists.jboss.org
Thu Dec 20 08:46:43 EST 2007
When a "Default Schema" is specified Seam generates a project with errors
-------------------------------------------------------------------------
Key: JBIDE-1544
URL: http://jira.jboss.com/jira/browse/JBIDE-1544
Project: Tools (JBoss Tools)
Issue Type: Bug
Affects Versions: 2.0.0.GA
Environment: 32-bit Ubuntu Linux 7.10, Eclipse 3.3.1.1 (M20071023-1652), WTP 2.0.1 (v200709110510), DTP 1.5.1, JBoss 4.2.2.GA, JBoss Seam 2.0.0.GA
Reporter: Alexandros Karypidis
Priority: Minor
When creating a new "Seam Web Project", the wizard, you are prompted for the "Default Schema". If you type one instead of leaving it empty, an incorrect persistence.xml is generated (the schema name is added to the "properties" tag, outside a "property" tag). For instance, if you specify "ABC" as the schema, you would expect a persistence.xml as follows:
<jta-data-source>java:/gendexDatasource</jta-data-source>
<properties>
<property name="hibernate.dialect" value="org.hibernate.dialect.Oracle10gDialect"/>
...
<property name="hibernate.default_schema" value="ABC"/>
</properties>
Instead, you get:
<jta-data-source>java:/gendexDatasource</jta-data-source>
<properties>
<property name="hibernate.dialect" value="org.hibernate.dialect.Oracle10gDialect"/>
...
ABC
</properties>
Also, the hibernate-console.properties file does not include the schema name. One would expect it to look like this:
#File used by hibernate tools to override <datasource> and other container specific settings in persistence.xml
hibernate.connection.password=xxx
hibernate.connection.username=yyy
...
hibernate.default_schema=ABC
Instead, the last line (hibernate.default_schema=ABC) is not created.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list