Exception thrown by Configuration.getRootClassMapping(String) not helpful

Description

current code:

this causes exception message to be "You may only specify a cache for root <class> mappings". As a result, the user will have to check all cache configurations or set a breakpoint to get the value of clazz that caused the error. To simplify this process, add clazz to the message, e.g. "You may only specify a cache for root <class> mappings, was " + clazz

Environment

hibernate-core-3.3.2.GA.jar

Status

Assignee

Brett Meyer

Reporter

Stefan Fussenegger

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Affects versions

Priority

Trivial
Configure