On Sat, 25 Aug 2007, Igor Vaynberg wrote:
> always try setter/getter first, if not fallback onto the field.

+1
Direct field access works typically so I like to omit
accessor bloat when possible, and if you need any special
handling in the accessor just create the accessor method for 
it.

If you want to conform better with the javabean way, maybe 
you could make falling back to direct field access a
setting (default to true, please ;)). 

I (and surely many others) like field access anyway, and use
it with Hibernate as well.

- Timo

-- 
Timo Rantalaiho           
Reaktor Innovations Oy    <URL: http://www.ri.fi/ >

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to