Details

    • Type: Feature Request
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.5.0.Final
    • Fix Version/s: 3.x Future
    • Component/s: Java EE
    • Labels:
      None

      Description

      See thread discussion on : https://community.jboss.org/thread/240936

      Until now, Forge creates classes (e.g. jpa-new-entity, cdi-new-bean, java-new-class), annotations (cdi-new-qualifier, constraint-new-annotation...), attributes (jpa-new-field, java-new-field...) but nowhere Forge creates methods. This could make sense in most of the artifacts (EJBs, CDI bean, Java, but also JPA).

      Something like :

      ejb-new-method --named findById --return org.agoncal.model.Author --parameters Long id
      ejb-new-method --named removeById --return void --parameters Long id
      ejb-new-method --named updateName --return org.agoncal.model.Author --parameters Long id, String name, String surname
      java-new-method --named doStuff --return String --parameters Integer p1, String p2, String p3
      

      We could go a bit further and specify methods. A jpa-new-method could bring lifecycle (e.g.
      @PostPersist, @PreRemove...), a cdi-new-method or ejb-new-method could bring lifecycle (@PostConstruct, @PreDestroy) ornInterceptor, but java-new-method doesn't bring any of those.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  agoncal Antonio Goncalves
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated: