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

Gail Badner (JIRA) noreply at atlassian.com
Tue Jun 8 12:04:10 EDT 2010


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-5290?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gail Badner updated HHH-5290:
-----------------------------

    Issue Type: Improvement  (was: Task)

> 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: Improvement
>          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