JPA-Annotations on fields with final keyword are ignored - it would be nice, 
wenn there would be any error output
-----------------------------------------------------------------------------------------------------------------

                 Key: OPENJPA-2173
                 URL: https://issues.apache.org/jira/browse/OPENJPA-2173
             Project: OpenJPA
          Issue Type: Wish
            Reporter: Stefan Mair


final field are per definition transient, but when there are also 
JPA-Annotations which lead to an conflicting situation then there should be an 
error output.
At the moment, such fields are ignored at all, but in most cases it would be a 
programming error and it would be nice to become an hint from the framework.

Example:

@OneToMany
final Set aa = new HashSet();

I think the behavior should be like in

@JoinColumn
@OneToMany(mappedBy="bb")

In this Situation the conflict ist not ignored. There is an error output.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to