[
https://issues.apache.org/jira/browse/OPENJPA-2467?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Daniele Pirola reopened OPENJPA-2467:
-------------------------------------
Specs at section 8.8 start explanation from getter and setter so the first two
characters are the characters of the method, not of the property. In fact in
the example there is "FooBah becomes fooBah" and not "fooBah becomes FooBah".
Please see the code of method Introspector.decapitalize for a correct
implementation of the rule.
Please see also https://hibernate.atlassian.net/browse/HHH-8716
this is another issue for the same problem
> 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
>
> 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)