openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Mair (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (OPENJPA-2173) JPA-Annotations on fields with final keyword are ignored - it would be nice, wenn there would be any error output
Date Sun, 15 Apr 2012 22:11:21 GMT
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

        

Mime
View raw message