[hibernate-issues] [Hibernate-JIRA] Created: (HHH-5290) Enhance getter/setter method search logic in org.hibernate.bytecode.javassist.BulkAccessorFactory

Kirill Klenski (JIRA) noreply at atlassian.com
Fri Jun 4 05:03:36 EDT 2010


Enhance getter/setter method search logic in org.hibernate.bytecode.javassist.BulkAccessorFactory
-------------------------------------------------------------------------------------------------

                 Key: HHH-5290
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5290
             Project: Hibernate Core
          Issue Type: Task
          Components: core
         Environment: 3.3.1-GA
            Reporter: Kirill Klenski
            Priority: Minor
         Attachments: BulkAccessorFactory.java.patch

org.hibernate.bytecode.javassist.BulkAccessorFactory.findAccessors(...) searches for accessor methods in the optimized entity class only. This means that the methods from the superclasses are not visible during BulkAccessor creation unless overridden by child classes. By enhancing the algorithm to search down the inheritance tree we could avoid creation of redundant methods which increase the code verbosity a lot. In our case almost all the entities are inherited from the base classes having the common entity properties defined, so the reflection optimization does not work for any of them until we override the inherited methods in all the child classes.

Proposed org.hibernate.bytecode.javassist.BulkAccessorFactory patch attached.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list