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

PropertyNotFoundException for entities with camelCased properties

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 1.0.0.Beta3
    • Component/s: None
    • Labels:
      None

      Description

      Getting troubles when using camelCase entity property field names.

      javax.el.PropertyNotFoundException: The class 'com.acme.domain.Bernd' does not have the property 'bName

      Bernd.java:
      @Column private String bName;
      public String getBName()

      { return this.bName; }

      public void setBName( final String bName)

      { this.bName=bName; }

        Gliffy Diagrams

          Issue Links

            Activity

            michaelschuetz Michael Schuetz created issue -
            Hide
            heapifyman heapifyman heapifyman added a comment -

            the problem also occurs when doing:
            1. entity --named TestEntity
            2. scaffold from-entity ...TestEntity

            the generated TestEntityBean.java has "private TestEntity testentity=new TestEntity();" but correctly camelCased getters and setters.
            the generated create.xhtml uses "<m:metawidget value="#

            {testEntityBean.testentity}

            " readOnly="#

            {false}

            " />" which leads to javax.el.PropertyNotFoundException

            Show
            heapifyman heapifyman heapifyman added a comment - the problem also occurs when doing: 1. entity --named TestEntity 2. scaffold from-entity ...TestEntity the generated TestEntityBean.java has "private TestEntity testentity=new TestEntity();" but correctly camelCased getters and setters. the generated create.xhtml uses "<m:metawidget value="# {testEntityBean.testentity} " readOnly="# {false} " />" which leads to javax.el.PropertyNotFoundException
            Hide
            lincolnthree Lincoln Baxter III added a comment -

            Ok. I've verified this. Working on a fix. Sorry for the delay!

            Show
            lincolnthree Lincoln Baxter III added a comment - Ok. I've verified this. Working on a fix. Sorry for the delay!
            lincolnthree Lincoln Baxter III made changes -
            Field Original Value New Value
            Assignee Lincoln Baxter III [ lincolnthree ]
            lincolnthree Lincoln Baxter III made changes -
            Fix Version/s 1.0.0.Beta3 [ 12318090 ]
            lincolnthree Lincoln Baxter III made changes -
            Link This issue is incorporated by SEAMFORGE-306 [ SEAMFORGE-306 ]
            lincolnthree Lincoln Baxter III made changes -
            Status Open [ 1 ] Closed [ 6 ]
            Resolution Done [ 1 ]
            lincolnthree Lincoln Baxter III made changes -
            Project Forge (JB) [ 12311102 ] Forge [ 12311820 ]
            Key SEAMFORGE-223 FORGE-47
            Fix Version/s 1.0.0.Beta3 [ 12318357 ]
            Fix Version/s 1.0.0.Beta3 [ 12318090 ]
            velias Vlastimil Eliáš made changes -
            Workflow GIT Pull Request workflow [ 12463800 ] GIT Pull Request workflow with automatic PR triggers [ 12657648 ]

              People

              • Assignee:
                lincolnthree Lincoln Baxter III
                Reporter:
                michaelschuetz Michael Schuetz
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Development