mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-16 16:15:06 +00:00
[HHH-2852] Better error messages when schema validation fails
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@14035 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
parent
e5e59ed2f2
commit
33ad68f239
@ -259,7 +259,10 @@ public void validateColumns(Dialect dialect, Mapping mapping, TableMetadata tabl
|
||||
|| columnInfo.getTypeCode() == col.getSqlTypeCode( mapping );
|
||||
if ( !typesMatch ) {
|
||||
throw new HibernateException(
|
||||
"Wrong column type: " + col.getName() +
|
||||
"Wrong column type in " +
|
||||
Table.qualify( tableInfo.getCatalog(), tableInfo.getSchema(), tableInfo.getName()) +
|
||||
" for column " + col.getName() +
|
||||
". Found: " + columnInfo.getTypeName().toLowerCase() +
|
||||
", expected: " + col.getSqlType( dialect, mapping )
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user