This is not going to be very straightforward to fix in Hibernate 4.2 (or 4.3) as it will required extending the Dialect class to specify Dialect-specific support of schemas and catalogs. This would force Hibernate to make some default assumptions, which will likely be wrong in dialects that are not explicitly tested.
This will be fixed in Hibernate 5 by
HHH-9550
.
|