[ 
https://issues.apache.org/jira/browse/OPENJPA-2467?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13863676#comment-13863676
 ] 

Aron Lurie commented on OPENJPA-2467:
-------------------------------------

Daniele,

I believe you are misinterpreting the bean spec. As it says prior to the 
section that you referenced, "...Thus when we extract a property or event name 
from the middle of an existing Java name, we normally convert the first 
character to lower case." The situation that they are referring to is the one 
where they are trying to generate a field name FROM a getter name. This is the 
opposite of the situation that you are describing. 

If this is not clear please see also section 8.3.1 of the bean spec. where you 
will see a case of property name inference. 

-Aron

> 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)

Reply via email to