If you're using property access, then you should never access the fields directly except for getters and setters. It can cause wrong results.

If you know that the property is always loaded (identity fields are always loaded into instances), then you don't have to worry about the messages.

Craig

On May 27, 2010, at 5:49 PM, Trenton D. Adams wrote:

Hi Guys,

The PCEnhancer complains about field access in some of these methods. Do I need to worry about those particular methods?

As an example...
"org.adamsbros.rmi.entities.TelephonePK" uses property access, but its field "entityId" is accessed directly in method "toString" defined in "org.adamsbros.rmi.entities.TelephonePK"

I mean I know if I'm doing lazy loading, toString won't get all the data, cause it hasn't been enhanced. That's basically what all the enhancement is for, right? But, I don't think I care, do I?

Can I disable the analysis for certain methods?

Thanks.

Craig L Russell
Architect, Oracle
http://db.apache.org/jdo
408 276-5638 mailto:[email protected]
P.S. A good JDO? O, Gasp!

Reply via email to