EntityPojo.getAllPropertiesIterator(PersistentClass) does not work correctly when the
persistent class has a superclass
-----------------------------------------------------------------------------------------------------------------------
Key: HBX-1152
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HBX-1152
Project: Hibernate Tools
Issue Type: Patch
Affects Versions: 3.2.4.GA
Environment: hibernate-tools revision 17926
Reporter: Andreas Brieg
Priority: Minor
Attachments: entitypojo_allpropertiesiterator_with_superclass_properties.patch
If a persistent class A is a superclass of persistent class B and A has a property a then
B inherits property a. But when iterating through the properties using
getAllPropertiesIterator(someInstanceOfB) the property a is not included.
For example you might want to have a natural identifier on the superclass and want to
generate a finder for a derived class that uses the natural identifier. This isn't
possible when getAllPropertiesIterator does not include the properties of the superclass.
The patch adds the all-properties-iterator of the superclass to the joined iterator of the
derived class.
--
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