Antonio Goncalves created FORGE-2094:
----------------------------------------
Summary: Being able to add a listener when creating a new JPA entity
Key: FORGE-2094
URL:
https://issues.jboss.org/browse/FORGE-2094
Project: Forge
Issue Type: Sub-task
Components: Java EE
Affects Versions: 2.12.1.Final
Reporter: Antonio Goncalves
Fix For: 2.x Future
Today the {{jpa-new-entity}} has the following syntax :
{code}
jpa-new-entity --named --targetPackage --idStrategy --tableName
{code}
It would be good to have an extra optional {{listener}} attribute to add a entity
listener. For example, the following command :
{code}
jpa-new-entity --named MyEntity --listener DebugListener
{code}
Would generate :
{code}
@Entity
@EntityListeners({ DebugListener.class })
public class MyEntity
{
}
{code}
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)