Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-1926 Adding more commands to Forge and improve existing ones
  3. FORGE-2094

Being able to add a listener when creating a new JPA entity


    • Icon: Sub-task Sub-task
    • Resolution: Unresolved
    • Icon: Major Major
    • 3.x Future
    • 2.12.1.Final
    • Java EE
    • None

      Today the jpa-new-entity has the following syntax :

      jpa-new-entity --named  --targetPackage  --idStrategy  --tableName

      It would be good to have an extra optional listener attribute to add a entity listener. For example, the following command :

      jpa-new-entity --named  MyEntity --listener DebugListener

      Would generate :

      @EntityListeners({ DebugListener.class })
      public class MyEntity

            Unassigned Unassigned
            agoncal Antonio Goncalves (Inactive)
            0 Vote for this issue
            1 Start watching this issue