[JBoss JIRA] (FORGE-1838) Being able to generate methods
by Antonio Goncalves (JIRA)
Antonio Goncalves created FORGE-1838:
----------------------------------------
Summary: Being able to generate methods
Key: FORGE-1838
URL: https://issues.jboss.org/browse/FORGE-1838
Project: Forge
Issue Type: Feature Request
Components: Java EE
Affects Versions: 2.5.0.Final
Reporter: Antonio Goncalves
Fix For: 2.x Future
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 :
{code}
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
{code}
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.
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
10 years, 7 months
[JBoss JIRA] (FORGE-1837) Better man page for ls command
by Arun Gupta (JIRA)
Arun Gupta created FORGE-1837:
---------------------------------
Summary: Better man page for ls command
Key: FORGE-1837
URL: https://issues.jboss.org/browse/FORGE-1837
Project: Forge
Issue Type: Bug
Reporter: Arun Gupta
Man page for "ls" shows:
List files
-a all
do not ignore entries starting with . [Boolean]
If this command is issued within a recently created entity, then it lists the methods of that entity as:
[Book.java]$ ls
equals(java.lang.Object)::boolean hashCode()::int setVersion(int)::void
getId()::java.lang.Long id::java.lang.Long toString()::java.lang.String
getVersion()::int setId(java.lang.Long)::void version::int
The manual page needs to be updated to reflect that.
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
10 years, 7 months
[JBoss JIRA] (FORGE-1712) Create composite command for Java EE setup
by Arun Gupta (JIRA)
[ https://issues.jboss.org/browse/FORGE-1712?page=com.atlassian.jira.plugin... ]
Arun Gupta commented on FORGE-1712:
-----------------------------------
Any ETA for this fix ?
> Create composite command for Java EE setup
> ------------------------------------------
>
> Key: FORGE-1712
> URL: https://issues.jboss.org/browse/FORGE-1712
> Project: Forge
> Issue Type: Feature Request
> Affects Versions: 2.3.0.Final
> Reporter: Arun Gupta
> Labels: Starter
> Fix For: 2.x Future
>
>
> Currently every spec need to be explicitly configured as:
> servlet-setup; cdi-setup; jpa-setup --container JBOSS_EAP6; rest-setup; constraint-setup; faces-setup; ejb-setup; scaffold-setup
> It would be great if a composite command such as "javaee6-setup" can be provided as an ease-of-use. Later "javaee7-setup" can be provided.
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
10 years, 7 months
[JBoss JIRA] (FORGE-1712) Create composite command for Java EE setup
by Arun Gupta (JIRA)
[ https://issues.jboss.org/browse/FORGE-1712?page=com.atlassian.jira.plugin... ]
Arun Gupta commented on FORGE-1712:
-----------------------------------
Any ETA for this fix ?
> Create composite command for Java EE setup
> ------------------------------------------
>
> Key: FORGE-1712
> URL: https://issues.jboss.org/browse/FORGE-1712
> Project: Forge
> Issue Type: Feature Request
> Affects Versions: 2.3.0.Final
> Reporter: Arun Gupta
> Labels: Starter
> Fix For: 2.x Future
>
>
> Currently every spec need to be explicitly configured as:
> servlet-setup; cdi-setup; jpa-setup --container JBOSS_EAP6; rest-setup; constraint-setup; faces-setup; ejb-setup; scaffold-setup
> It would be great if a composite command such as "javaee6-setup" can be provided as an ease-of-use. Later "javaee7-setup" can be provided.
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
10 years, 7 months