table creation ignores exception
Project: EJB 3.0
Issue Type: Bug
Components: EJB3 Extensions
Reporter: Ariane van der Steldt
When the deployment code fails to create a table, it rather silently ignores the issue.
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"
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:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see: http://www.atlassian.com/software/jira