Java Reflection allows to bypass this using Member.setAccessible(true)... Niels
-----Original Message----- From: Gordon Ross [mailto:[EMAIL PROTECTED] Sent: maandag 7 mei 2007 11:10 To: [email protected] Subject: RE: How to support read-only fields/paramters Yes it does help : It works a treat - but how ? Private methods are only accessable from within the class itself, and iBatis is not part of my class. GTG >>> "MCCORMICK, Paul" <[EMAIL PROTECTED]> 05/07/07 8:35 AM >>> Ibatis can use the private methods. E.g. If you define the method as "private void setId(Integer id) {..}" then ibatis can call it. Hope this helps,
