HHH-4569 - Split focus of ConfigurationPerformanceTest
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@17968 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
parent
d558dac5dc
commit
5a2caea959
|
@ -445,7 +445,7 @@ public class Configuration implements Serializable {
|
||||||
try {
|
try {
|
||||||
org.dom4j.Document doc = xmlHelper.createSAXReader( xmlFile.getAbsolutePath(), errors, entityResolver ).read( xmlFile );
|
org.dom4j.Document doc = xmlHelper.createSAXReader( xmlFile.getAbsolutePath(), errors, entityResolver ).read( xmlFile );
|
||||||
if ( errors.size() != 0 ) {
|
if ( errors.size() != 0 ) {
|
||||||
throw new MappingException( "invalid mapping", ( Throwable ) errors.get( 0 ) );
|
throw new InvalidMappingException( "file", xmlFile.toString(), (Throwable) errors.get(0) );
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -461,8 +461,8 @@ public class Configuration implements Serializable {
|
||||||
|
|
||||||
add( doc );
|
add( doc );
|
||||||
}
|
}
|
||||||
catch( DocumentException e){
|
catch (DocumentException e) {
|
||||||
throw new MappingException( "invalid mapping", e );
|
throw new InvalidMappingException( "file", xmlFile.toString(), e );
|
||||||
}
|
}
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
|
|
Loading…
Reference in New Issue