<div dir="ltr"><div class="gmail_extra">Hi guys,</div><div class="gmail_extra"><br></div><div class="gmail_extra">I want to work on &quot;Being able to add a listener when creating a new JPA entity &quot;(<a href="https://issues.jboss.org/browse/FORGE-2094">https://issues.jboss.org/browse/FORGE-2094</a>). Basically, when I create a new JPA entity, I want to be able to add as many listeners as I want.<br clear="all"><div><br></div><div><div class="" style="margin:9px 0px;padding:0px;border:1px solid rgb(204,204,204);font-size:12px;line-height:1.33333333333333;font-family:monospace;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;color:rgb(51,51,51);background:rgb(245,245,245)"><div class="" style="margin:0px;padding:9px 12px"><pre class="" style="margin-top:0px;margin-bottom:0px;padding:0px;max-height:30em;overflow:auto;white-space:pre-wrap;word-wrap:normal">jpa-<span class="" style="color:rgb(0,0,145)">new</span>-entity --named  MyEntity --listener DebugListener, AuditListener
</pre></div></div><p style="margin:10px 0px 0px;padding:0px;color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;line-height:20px">Would generate :</p><div class="" style="margin:9px 0px;padding:0px;border:1px solid rgb(204,204,204);font-size:12px;line-height:1.33333333333333;font-family:monospace;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;color:rgb(51,51,51);background:rgb(245,245,245)"><div class="" style="margin:0px;padding:9px 12px"><pre class="" style="margin-top:0px;margin-bottom:0px;padding:0px;max-height:30em;overflow:auto;white-space:pre-wrap;word-wrap:normal">@Entity
@EntityListeners({ DebugListener.class, <span style="font-size:11.8181819915771px;line-height:14.5454540252686px">AuditListener</span><span style="font-size:12px;line-height:1.33333333333333"> })</span></pre><pre class="" style="margin-top:0px;margin-bottom:0px;padding:0px;max-height:30em;overflow:auto;white-space:pre-wrap;word-wrap:normal"><span class="" style="color:rgb(0,0,145)">public</span> class MyEntity
{
}</pre></div></div></div><div class="gmail_extra"><br></div><div class="gmail_extra">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 ?</div><div class="gmail_extra"><br></div><div class="gmail_extra">Thanks</div><div class="gmail_extra"><br></div>-- <br>Antonio Goncalves <br>Software architect and Java Champion<br><br><a href="http://www.antoniogoncalves.org/" target="_blank">Web site</a> | <a href="http://twitter.com/agoncal" target="_blank">Twitter</a> | <a href="http://www.linkedin.com/in/agoncal" target="_blank">LinkedIn</a> | <a href="http://www.parisjug.org/" target="_blank">Paris JUG</a> | <a href="http://www.devoxx.fr/" target="_blank">Devoxx France</a>
</div></div>