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

Faces scaffold creates compilation errors when "id" getter is not called "getId()"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.0.1.Final
    • None
    • None
    • None

      scaffold from-entity ~.model.* --scaffoldType faces --overwrite
      generates an ActorBean.java containing
      return "view?faces-redirect=true&id=" + this.actor.getId();
      when the Actor.java model has the following
      @Id
      @Column(name = "ACTOR_ID", unique = true, nullable = false)
      public short getActorId()

      { return this.actorId; }

      public void setActorId(short actorId)

      { this.actorId = actorId; }

        1. ActorBean.java
          6 kB
        2. Actor.java
          2 kB

              fruehbeck@aon.at Thomas Frühbeck (Inactive)
              bsutter@redhat.com Burr Sutter
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: