I went ahead and implemented my proposed solution locally just to see,
and yeah it stopped the double parsing.
The tests all run fine from command line (mvn clean test). However,
some fail when I run from IDE (specifically some of the packaging tests
again; ScannerTest was the culprit today). Bu
http://opensource.atlassian.com/projects/hibernate/browse/HHH-5543
In JEE bootstrapping, mapping documents are parsed and validated twice
(details in the jira issue).
Problem is this code is extremely confusing and so I wanted to validate
my idea on the solution. Could y'all take a look?
--
S