Hum.... what are you saying by that ? No matter if I cd and Entity, an EJB,
a REST endpoint I can go "java-new-method" and it will create a new method,
no matter the component ? I thought anything related with JPA would be
jpa-new-field, jpa-new-method... If not, why do we have jpa-new-field and
not java-new-field ? Are you sure we would have a single java-new-method
for everything ?
2014-05-11 15:14 GMT+02:00 George Gastaldi <ggastald(a)redhat.com>:
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(a)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 <
http://www.antoniogoncalves.org/> |
Twitter<http://twitter.com/agoncal>
| LinkedIn <
http://www.linkedin.com/in/agoncal> | Paris
JUG<http://www.parisjug.org/>
| Devoxx France <
http://www.devoxx.fr/>
_______________________________________________
forge-users mailing list
forge-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/forge-users
_______________________________________________
forge-users mailing list
forge-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/forge-users