XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Major Major
    • 2.15.1.Final
    • 2.12.1.Final
    • Java EE
    • None

      It would be good to be able to create a new JPA listener. A basic command could just be :

      jpa-new-listener --named MyListener
      

      This will generate the following code :

      class MyListener {
      
      }
      

      Then we would add as many lifecycle events as needed, something like :

      jpa-new-listener --named MyListener --lifecycle PRE_PERSIST, POST_UPDATE, POST_REMOVE
      
      class MyListener {
      
         @PrePersist
         private void prePersist(Object object)
         {
         }
      
         @PostUpdate
         private void postUpdate(Object object)
         {
         }
      
         @PostRemove
         private void postRemove(Object object)
         {
         }
      }
      

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

                Created:
                Updated:
                Resolved: