mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-10 21:24:49 +00:00
HHH-5065 improved exception message on Configuration#getRootClassMapping
This commit is contained in:
parent
bb53193a75
commit
d430846076
@ -2330,7 +2330,7 @@ RootClass getRootClassMapping(String clazz) throws MappingException {
|
||||
return (RootClass) getClassMapping( clazz );
|
||||
}
|
||||
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