Trails

@OneToOne needs user interface semantics

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.1.0
  • Component/s: None
  • Labels:
    None
  • Environment:
    XP Pro, Eclipse-3.2.1, Jetty6x, Java5
  • Number of attachments :
    10

Description

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.

  1. Director.java
    08/May/07 9:42 AM
    3 kB
    Ken in nashua
  2. Director.java
    15/Mar/07 10:24 AM
    2 kB
    Ken in nashua
  3. Organization.java
    08/May/07 9:41 AM
    9 kB
    Ken in nashua
  4. Organization.java
    15/Mar/07 10:24 AM
    9 kB
    Ken in nashua
  5. pom.xml
    07/May/07 1:44 PM
    11 kB
    Ken in nashua
  6. TRAILS-30.and.TRAILS-22.20070507-1020.patch
    08/May/07 9:04 AM
    109 kB
    Ken in nashua
  7. TRAILS-30.and.TRAILS-22.20070507-1020.patch
    07/May/07 1:42 PM
    106 kB
    Ken in nashua
  8. TRAILS-30.and.TRAILS-22.20070508-1523.patch
    08/May/07 2:24 PM
    120 kB
    Ken in nashua
  9. TRAILS-30-TRAILS-22-roster-example.patch
    07/May/07 1:43 PM
    7 kB
    Ken in nashua

Activity

Hide
Ken in nashua added a comment -

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.

Show
Ken in nashua added a comment - 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.
Hide
Ken in nashua added a comment -

Here is the trails-core patch file.

Show
Ken in nashua added a comment - Here is the trails-core patch file.
Hide
Ken in nashua added a comment -

Here is the trails project roster example patch file

Show
Ken in nashua added a comment - Here is the trails project roster example patch file
Hide
Ken in nashua added a comment -

Here is my version of the example POM...

Show
Ken in nashua added a comment - Here is my version of the example POM...
Hide
Ken in nashua added a comment -

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.

Show
Ken in nashua added a comment - 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.
Hide
Ken in nashua added a comment -

Latest Owner POJO

Show
Ken in nashua added a comment - Latest Owner POJO
Hide
Ken in nashua added a comment -

Latest association POJO

Show
Ken in nashua added a comment - Latest association POJO
Hide
Ken in nashua added a comment -

This can't be a Cascade issue can it ?

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

Thanks

Show
Ken in nashua added a comment - This can't be a Cascade issue can it ? Will someone please look at this amd provide comment/input? Thanks
Hide
Ken in nashua added a comment -

Checked into rev 495

Show
Ken in nashua added a comment - Checked into rev 495

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: