HHH-5065 improved exception message on Configuration#getRootClassMapping
This commit is contained in:
parent
a9afc4040d
commit
2e14dc0ea9
|
@ -2251,7 +2251,7 @@ public class Configuration implements Serializable {
|
|||
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…
Reference in New Issue