mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-03-01 23:39:15 +00:00
HHH-5065 improved exception message on Configuration#getRootClassMapping
This commit is contained in:
parent
a9afc4040d
commit
2e14dc0ea9
@ -2251,7 +2251,7 @@ RootClass getRootClassMapping(String clazz) throws MappingException {
|
|||||||
return (RootClass) getClassMapping( clazz );
|
return (RootClass) getClassMapping( clazz );
|
||||||
}
|
}
|
||||||
catch (ClassCastException cce) {
|
catch (ClassCastException cce) {
|
||||||
throw new MappingException( "You may only specify a cache for root <class> mappings" );
|
throw new MappingException( "You may only specify a cache for root <class> mappings. Attempted on " + clazz );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user