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

Being able to generate methods

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Unresolved
    • Major
    • 3.x Future
    • 2.5.0.Final
    • Java EE
    • 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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              agoncal Antonio Goncalves (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: