4 Replies Latest reply on Oct 29, 2014 4:28 PM by Lincoln Baxter III

    [forge-dev]  How to have multiple choices in a Forge command ?

      Hi guys,


      I want to work on "Being able to add a listener when creating a new JPA

      entity "(https://issues.jboss.org/browse/FORGE-2094). Basically, when I

      create a new JPA entity, I want to be able to add as many listeners as I



      jpa-new-entity --named  MyEntity --listener DebugListener, AuditListener


      Would generate :



      @EntityListeners({ DebugListener.class, AuditListener })


      public class MyEntity





      How do I do to be able to have several choices on an attribute ? I only

      know how to manage one value but not several one. Is it doable ? Any

      exemple in any Forge command ?





      Antonio Goncalves

      Software architect and Java Champion


      Web site <http://www.antoniogoncalves.org/> | Twitter

      <http://twitter.com/agoncal> | LinkedIn <http://www.linkedin.com/in/agoncal>

      | Paris JUG <http://www.parisjug.org/> | Devoxx France