openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick Curtis <curti...@gmail.com>
Subject Re: What is pcVersionInit?
Date Wed, 28 Sep 2011 21:14:31 GMT
> Just for my own curiosity, where can I find out what pcVersionInit is?
pcVersionInit was added with OPENJPA-1400[1].

Thanks,
Rick
[1] https://issues.apache.org/jira/browse/OPENJPA-1400

On Wed, Sep 28, 2011 at 3:18 PM, kostellodon <donald.g.kostello@citi.com>wrote:

> Not a true problem I don't think, but a curiosity.
>
> I am using the version of JPA 1.2.3-SNAPSHOT which is included in WebSphere
> 7.
>
> I have a base class that contains common fields, such as id, insert user,
> insert datetime, etc, and this is annotated as @MappedSuperclass.  My
> entities all extend this base class.
>
> We are running FindBugs against our code, including the entities.  FindBugs
> is giving the following warning for all entities that extend my base class:
>
> Field <entity_name>.pcVersionInit masks field in superclass
> <package_name>.BasicEntity
>
> This class defines a field with the same name as a visible instance field
> in
> a superclass. This is confusing, and may indicate an error if methods
> update
> or access one of the fields when they wanted the other.
>
> Just for my own curiosity, where can I find out what pcVersionInit is?
>
> Also, I realize that this is probably not a problem, but what can be done
> to
> remove this warning?
>
> -




-- 
*Rick Curtis*

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message