title: Same JPA callback method in @MappedSuperclass and child class
body: <p>Can I define same JPA callback method in parent and child class as below? If yes, do I need to invoke super.onPrePersist(); in child class onPrePersist() method?</p>
  
  <pre><code>@MappedSuperclass
  public abstract class AbstractEntity {
  
      @PrePersist
      protected onPrePersist() {
          System.out.println("Parent onPrePersist() invoked");
      }
  }
  
  @Entity
  @Table(name = "child")
  public class Child extends AbstractEntity {
  
      @PrePersist
      protected onPrePersist() {
          **super.onPrePersist();**
          System.out.println("Child onPrePersist() invoked");
      }
  }
  </code></pre>