[ https://issues.apache.org/jira/browse/OPENJPA-2467?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13886792#comment-13886792 ]
Kevin Sutter commented on OPENJPA-2467: --------------------------------------- Thanks, Dalia. A couple of suggestions... In the code where you explain that we're now looking for both getaStart and getAStart, could you include the JavaBeans section as a reference? Down the road, if somebody looks at this code, they are going to wonder why this "exception" was put in place. Also, the text above made me think about another scenario... What happens if the attribute is named a_Start? That is, the second character is not an alphabetic character? Does the JavaBean spec outline this behavior? And, how would we respond? Other than that, this looks like a good patch. We're fixing this edge case, but leaving the current behavior. On a related note... What happens when we generate Entity classes? If we read an attribute from the database named aStart, which getter/setter methods get generated? Is this a completely separate code path and, thus, your code changes don't affect that processing? Or, are they related and now we're (accidentally) changing how the Entity classes are getting generated? > No setter was found for method like tStart > ------------------------------------------ > > Key: OPENJPA-2467 > URL: https://issues.apache.org/jira/browse/OPENJPA-2467 > Project: OpenJPA > Issue Type: Bug > Components: jpa > Affects Versions: 2.2.2 > Reporter: Daniele Pirola > Assignee: Rick Curtis > Attachments: OPENJPA-2467.txt > > > Suppose having an entity class with fields like tStart, tEnd, tModify (with > second letter in upper case). The corresponding getter and setter are > gettStart and settStart, gettEnd, ... and not getTStart or setTStart. > Inside class PersistenceMetaDataDefaults use of StringUtils.capitalize in > method isDefaultPersistent generate the mistake. > Look at this pdf, section 8.8 > http://download.oracle.com/otn-pub/jcp/7224-javabeans-1.01-fr-spec-oth-JSpec/beans.101.pdf -- This message was sent by Atlassian JIRA (v6.1.5#6160)