table creation ignores exception
--------------------------------
Key: EJBTHREE-977
URL:
http://jira.jboss.com/jira/browse/EJBTHREE-977
Project: EJB 3.0
Issue Type: Bug
Components: EJB3 Extensions
Environment: Postgresql
Reporter: Ariane van der Steldt
Priority: Critical
When the deployment code fails to create a table, it rather silently ignores the issue.
Log fragment:
2007-05-31 15:48:45,646 DEBUG [org.hibernate.tool.hbm2ddl.SchemaUpdate] create table
UserRight_`group` (rights_id int8 not null, userGroups_id int8 not null)
2007-05-31 15:48:45,651 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] Unsuccessful:
create table UserRight_`group` (rights_id int8 not null, userGroups_id int8 not null)
2007-05-31 15:48:45,651 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] ERROR: syntax
error at or near "`"
JBoss finished the whole deployment and does not give any other complaints than this. My
suspicion is that SchemaUpdate catches an exception somewhere, prints this line but then
forgets to pass on the exception, causing the EJB deployment to "succeed"
incorrectly.
Table UserRight_`group` was an automatic concatenation, due to a ManyToMany relation
between entity UserRight and entity Group, where the latter was escaped using back ticks,
as described here:
http://jira.jboss.org/jira/browse/EJBTHREE-637
A bugreport about the incorrect name can be found here:
http://jira.jboss.org/jira/browse/EJBTHREE-976
--
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