[forge-dev] How to have multiple choices in a Forge command ?

Antonio Goncalves antonio.mailing at gmail.com
Sun Oct 26 07:27:02 EDT 2014


And I have the same need for "Being able to create a new JPA listener" (
https://issues.jboss.org/browse/FORGE-2093) :

jpa-new-listener --named MyListener --lifecycle PRE_PERSIST,
POST_UPDATE, POST_REMOVE


2014-10-26 12:23 GMT+01:00 Antonio Goncalves <antonio.mailing at gmail.com>:

> Hi guys,
>
> I want to work on "Being able to add a listener when creating a new JPA
> entity "(https://issues.jboss.org/browse/FORGE-2094). Basically, when I
> create a new JPA entity, I want to be able to add as many listeners as I
> want.
>
> jpa-new-entity --named  MyEntity --listener DebugListener, AuditListener
>
> Would generate :
>
> @Entity
> @EntityListeners({ DebugListener.class, AuditListener })
>
> public class MyEntity
> {
> }
>
>
> How do I do to be able to have several choices on an attribute ? I only
> know how to manage one value but not several one. Is it doable ? Any
> exemple in any Forge command ?
>
> Thanks
>
> --
> 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/>
>



-- 
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/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/forge-dev/attachments/20141026/7d3a8b42/attachment-0001.html 


More information about the forge-dev mailing list