[
https://issues.apache.org/jira/browse/OPENJPA-2467?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13864001#comment-13864001
]
Daniele Pirola commented on OPENJPA-2467:
-----------------------------------------
This is a very common mistake I found many times in many java library and also
in earliest version of IDE like Eclipse or IntelliJ.
Please read this
http://stackoverflow.com/questions/2948083/naming-convention-for-getters-setters-in-java
or this
http://dertompson.com/2013/04/29/java-bean-getterssetters/
The spec are not so clear but please fix this bug. Also try to use BeanInfo
introspector classes to find the correct property from a getter and viceversa,
you will find that the correct setter for property like tStart is gettStart,
also try in a JSF page
> 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)