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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Done
    • None
    • 1.0.1.Final
    • None
    • None

    Description

      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; }

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: