Details

    • Type: Sub-task
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.12.1.Final
    • Fix Version/s: 2.15.1.Final
    • Component/s: Java EE
    • Labels:
      None

      Description

      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)
         {
         }
      }
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  agoncal Antonio Goncalves
                  Reporter:
                  agoncal Antonio Goncalves
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: