Ling Wang wrote:

> ... it would be nice if iBATIS can support mapping
> of public fields besides properties (getters and
> setters). Do you know if that is already on the to do
> list? If yes, any idea when will it be implemented?

In my experience, public fields are a massively bad idea. I believe this
opinion to be shared by much of the wider industry.

For example, the FxCop tool has an explicit rule against them:

*Do not declare visible instance fields*
http://www.gotdotnet.com/team/fxcop/Docs/Rules/Design/DoNotDeclareVisibl
eInstanceFields.html

Given also that IBatis.NET is a tool that enables "Best Practice" design
(particularly separatation of concerns), I would strongly suggest that
it should *not* support mapping of public fields.

My 2c,
Bevan.


******************************************************************************
"This message (and any files transmitted with it) are confidential and 
may be legally privileged. If you are not the intended recipient please
notify the sender immediately and delete this message from your system.

This message does not necessarily reflect the views of the
Reserve Bank of New Zealand. If the recipient has any concerns
about the content of this message they should seek alternative
confirmation from the Reserve Bank of New Zealand."
******************************************************************************



Reply via email to