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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira