]
Steve Ebersole closed HHH-984.
------------------------------
Closing stale resolved issues
Hibernate doesn't fully comply with the JavaBean 1.01 spec
----------------------------------------------------------
Key: HHH-984
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-984
Project: Hibernate Core
Issue Type: Bug
Components: core
Affects Versions: 3.0.5
Reporter: Oliver Siegmar
Priority: Minor
I already reported this bug at
http://opensource2.atlassian.com/projects/hibernate/browse/HHH-755, but Gavin closed it
with the comment, that Hibernate would comply with the JavaBean spec, but that's not
true.
Consider a property 'fooDate', the getter would be 'getFooDate'. Now
consider a property 'gDate', the getter would be? Right, 'getGDate' - but
Hibernate looks for a 'getgDate' because of the property find algorithms in two
methods: setterMethod() and getterMethod() of BasicPropertyAccessor.java.
Just calling Introspector.decapitalize() isn't enough to comply the spec fully.
The first action within setterMethod() and getterMethod() should be to capitalize the
first letter of propertyName, then the comparison with the found setter/getter would
succeed.
BTW: Eclipse creates a getGDate() and setGDate() for a property gDate - this is how I
noticed the problem.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: