Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-871

Faces scaffold generates incorrect initializers for OneToOne fields with property based accessors

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.3.0.Final
    • 1.2.3.Final
    • Scaffold
    • None

      The Faces scaffold generates initializers in the view bean for @OneToOne relationships. When a property based accessor is used, the initializer expression is incorrectly formed:

      this.getX = new X();
      

      This should instead have been:

      this.x = new X();
      

      Field based accessors are treated correctly however.

              vineet.reynolds_jira Vineet Reynolds (Inactive)
              vineet.reynolds_jira Vineet Reynolds (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: