|
From: <leg...@at...> - 2003-09-28 00:08:30
|
Message:
The following issue has been closed.
Resolver: Max Rydahl Andersen
Date: Sat, 27 Sep 2003 7:06 PM
fixed in cvs
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-352
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-352
Summary: Method introsepction fails with certain class property names
Type: Bug
Status: Closed
Priority: Minor
Resolution: FIXED
Project: Hibernate2
Components:
core
Fix Fors:
2.1
Versions:
2.0.3
Assignee: Max Rydahl Andersen
Reporter: Tom Pierce
Created: Mon, 22 Sep 2003 11:24 AM
Updated: Sat, 27 Sep 2003 7:06 PM
Environment: JDK 1.4.0_01, Windows 2000, DB2 7.2
Description:
When you have a class that has a property with a name like "eMailTxtDesc", and a getter signature like "public java.lang.String getEMailTxtDesc()", Hibernate will report the following exception at runtime: "net.sf.hibernate.PropertyNotFoundException: Could not find a getter for eMailTxtDesc in class com.fritolay.sia.model.TargtList".
I believe this is because the call to Introspector.decapitalize on line 242 of the ReflectHelper class doesn't actually decapitalize the "EMailTxtDesc" fragment. It is the same before and after the call. So, the test on line 244 fails.
I'm guessing my property name should actually be emailTxtDesc and the getter should be getEmailTxtDesc to be more bean-like. However, the mapping was autogenerated by Middlegen 2.0-b1 and the class files from the mappings were generated by hbm2java.
My work-around is to rename the property and the get/set pair.
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
|