[forge-users] And what about being able to generate methods ?

George Gastaldi ggastald at redhat.com
Sun May 11 09:14:28 EDT 2014


I think it's a good idea. However I am not sure if it should be named "ejb-new-method", but rather "java-new-method". Can you JIRA it? This issue could also have a "Starter" label.

Thanks

> Em 11/05/2014, às 06:58, Antonio Goncalves <antonio.mailing at gmail.com> escreveu:
> 
> Hi all,
> 
> As you might know by now, I'm creating a Java EE 6 Advanced training course extensively using JBoss Forge. At one point, I create a set of EJBs.... and I need to create a few methods on each one. 
> 
> I was wondering if it would make sense to have JBoss Forge generating methods ?
> 
> 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).
> 
> Do you think it would be good to have such functionnality ? 
> 
> 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
> 
> What do you think ?
> 
> -- 
> Antonio Goncalves 
> Software architect and Java Champion
> 
> Web site | Twitter | LinkedIn | Paris JUG | Devoxx France
> _______________________________________________
> forge-users mailing list
> forge-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/forge-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/forge-users/attachments/20140511/d3fcce7d/attachment-0001.html 


More information about the forge-users mailing list