Trails
  1. Trails
  2. TRAILS-30

@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
        3 kB
        Kenneth William Colassi
      2. Director.java
        2 kB
        Kenneth William Colassi
      3. Organization.java
        9 kB
        Kenneth William Colassi
      4. Organization.java
        9 kB
        Kenneth William Colassi
      5. pom.xml
        11 kB
        Kenneth William Colassi
      6. TRAILS-30.and.TRAILS-22.20070507-1020.patch
        109 kB
        Kenneth William Colassi
      7. TRAILS-30.and.TRAILS-22.20070507-1020.patch
        106 kB
        Kenneth William Colassi
      8. TRAILS-30.and.TRAILS-22.20070508-1523.patch
        120 kB
        Kenneth William Colassi
      9. TRAILS-30-TRAILS-22-roster-example.patch
        7 kB
        Kenneth William Colassi

        Activity

        Hide
        Kenneth William Colassi 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
        Kenneth William Colassi 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
        Kenneth William Colassi added a comment -

        Here is the trails-core patch file.

        Show
        Kenneth William Colassi added a comment - Here is the trails-core patch file.
        Hide
        Kenneth William Colassi added a comment -

        Here is the trails project roster example patch file

        Show
        Kenneth William Colassi added a comment - Here is the trails project roster example patch file
        Hide
        Kenneth William Colassi added a comment -

        Here is my version of the example POM...

        Show
        Kenneth William Colassi added a comment - Here is my version of the example POM...
        Hide
        Kenneth William Colassi 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
        Kenneth William Colassi 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
        Kenneth William Colassi added a comment -

        Latest Owner POJO

        Show
        Kenneth William Colassi added a comment - Latest Owner POJO
        Hide
        Kenneth William Colassi added a comment -

        Latest association POJO

        Show
        Kenneth William Colassi added a comment - Latest association POJO
        Hide
        Kenneth William Colassi added a comment -

        This can't be a Cascade issue can it ?

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

        Thanks

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

        Checked into rev 495

        Show
        Kenneth William Colassi added a comment - Checked into rev 495

          People

          • Assignee:
            Kenneth William Colassi
            Reporter:
            Kenneth William Colassi
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: