On Thu, Jun 11, 2009 at 2:20 PM, Simon Droscher <
[email protected]> wrote:

>
> The major point it makes is this:
> When using property access, only the getter and setter method for a
> property
> should ever access the underlying persistent field directly


That's exactly what I was looking for, thanks.

Note that none of this is relevant if you are using field access rather than
> property access.
>

But I didn't expect that!
(from the manual)

> To use field access for an entity using annotation metadata, simply place
>> your metadata and mapping annotations on your field declarations:
>>
>
I am using field access. I placed my annotations on the fields simply
because I like them there. I didn't realize there was a functional
difference. Is there any advantage/disadvantage to field vs property access?
It seems property access has the potential gotcha, while field does not.
Perhaps there is some other cost...

-- 
Daryl Stultz
_____________________________________
6 Degrees Software and Consulting, Inc.
http://www.6degrees.com
mailto:[email protected]

Reply via email to