MB>Data integrity can be accomplished without getter/setters and without the
MB>logic spread out everywhere.  This is the responsibility of the
MB>data/business processing classes.

This sounds crazy to me. The whole idea of encapsulation is having
'one' point of access to data. Impurities like C++ friend classes and
package level access are messy hacks, little better than globals.

If a Person object has an Age instance variable then that Person
object setAge method is the best point to define the rule 'age can not be negative'.

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to