ehlo.

  The patch allowing to choose the access method and/or order is
  submitted to JIRA. The URL is:

http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-270

Resulting patch has following external options:

1. hibernate.access.order in hibernate.conf

     Possible values:
        accessors-only          (default) use only methods
        fields-only             use only direct fields access
        accessors-then-fields   scan methods; if not found, scan fields
        fields-then-accessors   scan fields; if not found, scan methods

2. marker interfaces

     Developer may explicitely mark a class to be accessed using
     specific method. To do it, he should write code like this:

        public class FieldSuper
        implements ReflectHelper.AccessibleViaFieldsOnly {
                public Integer streetNumber;
                public String city;
                public String streetName;
        }

     Note that super class may have one access method, and subclass --
     another.

  In process of patching one of interfaces (Loadable) was changed to
  return not Method, but ReflectHelper.Getter when asked for identity
  getter. This was required since we not always have Method, we may have
  Field.

dozen

P.S. Ugh... I was surprising that even just taken from CVS sources has some tests broken. It prevents from being absolutely sure I've not broken anything, although I've done my best in testing.



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to