That I know, any chances this change will made it theu the official version?
Also, if no Schema is defined (as in my case) the table name is not properly generated. The code on org.hibernate.mapping.Table:
if ( catalog != null ) {
qualifiedName.append( catalog );
qualifiedName.append( separator );
qualifiedName.append( schema != null ? schema : "" );
qualifiedName.append( separator );
}
Should be changed to something more like:
if ( catalog != null ) {
qualifiedName.append( catalog );
qualifiedName.append( separator );
qualifiedName.append( schema != null ? schema : "" );
qualifiedName.append( schema != null ? separator : "" );
}
So we don;t get table names with two separators together if catalog is defined and schema is not.
Now, what I'd like is a permanent fix instead of a workaround, I'm not sur eif this forwum is the right place to post these suggestions.
gavin wrote:
The use of _ as the schema seperator was done ages ago because older versions of MySQL did not have schemas. You can easily work around this by subclassing the dialect if you are using a recent MySQL.