Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.1.0
-
Fix Version/s: 1.1.0
-
Component/s: trails-hibernate
-
Labels:None
-
Environment:All
-
Number of attachments :
Description
AssociationSelect does not support soft associations anymore
Previous revisions of trails-1.1-SNAPSHOT supported a version of HibernateDescriptorDecorator that accomodated HARD and SOFT OneToOne associations.
Hard meaning the OneToOne property editor would render.
Soft meaning the simple AssociationSelect property editor would render.
Currently, recent modifications have regressed to just the former. Latter logic is no longer working.
It is all based on the parsing of the mappedBy annotation field and the determination of whether to instantiate ObjectReferenceDescriptor or OwningObjectReferenceDescriptor.
Former logic operated as follows:
If mappedBy = "" then instantiate ObjectReferenceDescriptor.
If mappedBy= "something" then drill into class reflection and find the owner and it's associated property and instantiate OwningObjectReferenceDescriptor using those attributes retrieved from class reflection.
The code for this was pain staking and valuable.
It would be nice to see it working asap.
Please refer to revision 554 for working logic.