]
Steve Ebersole closed HHH-1676.
-------------------------------
Closing stale resolved issues
org.hibernate.cfg.Configuration should obey standard
java.util.Properties overwrite rules
-----------------------------------------------------------------------------------------
Key: HHH-1676
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-1676
Project: Hibernate Core
Issue Type: Improvement
Components: core
Affects Versions: 3.0 alpha, 3.0 beta 1, 3.0 beta 2, 3.0 beta 3, 3.0 beta 4, 3.0 rc 1,
3.0 final, 3.0.1, 3.0.2, 3.0.3, 3.0.4, 3.0.5, 3.1 beta 1, 3.1 beta 2, 3.1 rc 1, 3.1 rc2,
3.1 rc3, 3.1, 3.1.1, 3.1.2, 3.2.0.alpha1, 3.2.0.alpha2, 3.1.3, 3.2.0 cr1, 3.2.0.cr2,
3.2.1
Environment: All environments
Reporter: Ben Wolfe
Priority: Minor
Original Estimate: 2m
Remaining Estimate: 2m
Standard Java properties operate under the principal of "first come first
served". Once a property has a value it is not changed by a later attempt.
The method org.hibernate.cfg.Configuration.addProperties(Element parent) should read
private void addProperties(Element parent) {
Iterator iter = parent.elementIterator( "property" );
while ( iter.hasNext() ) {
Element node = (Element) iter.next();
String name = node.attributeValue( "name" );
String value = node.getText().trim();
log.debug( name + "=" + value );
if (properties.containsKey(name)
continue;
properties.setProperty( name, value );
if ( !name.startsWith( "hibernate" ) ) {
properties.setProperty( "hibernate." + name, value );
}
}
Environment.verifyProperties( properties );
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: