Issue Details (XML | Word | Printable)

Key: TRAILS-30
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Ken in nashua
Reporter: Ken in nashua
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Trails

@OneToOne needs user interface semantics

Created: 15/Mar/07 10:24 AM   Updated: 11/May/07 03:56 PM   Resolved: 11/May/07 03:56 PM
Component/s: None
Affects Version/s: None
Fix Version/s: 1.1.0

Time Tracking:
Not Specified

File Attachments: 1. Zip Archive 2007.04.23.one.to.one.trails.integrated.editor.zip (1.17 MB)
2. Java Source File Director.java (3 kB)
3. Java Source File Director.java (2 kB)
4. Java Source File Organization.java (9 kB)
5. Java Source File Organization.java (9 kB)
6. XML File pom.xml (11 kB)
7. Text File TRAILS-30-TRAILS-22-roster-example.patch (7 kB)
8. Text File TRAILS-30.and.TRAILS-22.20070507-1020.patch (109 kB)
9. Text File TRAILS-30.and.TRAILS-22.20070507-1020.patch (106 kB)
10. Text File TRAILS-30.and.TRAILS-22.20070508-1523.patch (120 kB)

Environment: XP Pro, Eclipse-3.2.1, Jetty6x, Java5


 Description  « Hide

OneToOne has been logically operated in the back end with.

Organization.JAVA
@OneToOne
@JoinTable(name = "OrganizationsDirectors",
joinColumns = @JoinColumn(name = "director_fk"),
inverseJoinColumns = {@JoinColumn(name = "organization_fk")}
)
@PropertyDescriptor(readOnly = false, index = 2)
public Director getDirector() { return director; }

Director.JAVA
@OneToOne
@JoinTable(name = "OrganizationsDirectors",
joinColumns = @JoinColumn(name = "organization_fk"),
inverseJoinColumns = {@JoinColumn(name = "director_fk")}
)
public Organization getOrganization() { return organization; }

But there is no user interface that operates creation of the initial director.



Ken in nashua added a comment - 02/May/07 08:37 AM

Attached is a prototype that successfully implements front end for a hard OneToOne association.

There is a bug though. The OneToOne association in the back end is not sticking. A test was successfully performed that validates the mappings are working on hibernate. OGNL was implemented to sustain the inverse property of the OwningObjectReferenceDescriptor. This stick issue still persists.


Ken in nashua added a comment - 07/May/07 01:42 PM

Here is the trails-core patch file.


Ken in nashua added a comment - 07/May/07 01:43 PM

Here is the trails project roster example patch file


Ken in nashua added a comment - 07/May/07 01:44 PM

Here is my version of the example POM...


Ken in nashua added a comment - 08/May/07 09:04 AM

Latest Patch file attached uses re-vamped AssociationCallback with instrumented OGNL.

Association still fails to stick.

Cannot get the association to stick outside of this OneToOne editor either. If I focus on instance editor for the association alone, it fails to stick there either.

Thinking it surrounds the AssociationSelect widget but getValue/setValue are being propagated in/out of that widget for the association property.


Ken in nashua added a comment - 08/May/07 09:41 AM

Latest Owner POJO


Ken in nashua added a comment - 08/May/07 09:42 AM

Latest association POJO


Ken in nashua added a comment - 08/May/07 09:43 AM

This can't be a Cascade issue can it ?

Will someone please look at this amd provide comment/input?

Thanks


Ken in nashua added a comment - 11/May/07 03:56 PM

Checked into rev 495