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?

--
View this message in context: 
http://openjpa.208410.n2.nabble.com/What-is-pcVersionInit-tp6841718p6841718.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Reply via email to