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

    XMLWordPrintable

Details

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

    Description

      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 :

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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: