Package 

Class BaseEntity


  • @Superclass() 
    public abstract class BaseEntity
    
                        

    Created by rsubramaniam on 10/19/17.

    • Method Summary

      Modifier and Type Method Description
      void onBeforeInsert() Sets the create time before the inserting the entity into the database table.
      void onBeforeUpdate() Sets the create time before the inserting the entity into the database table.
      long getModifiedTime() Gets the date and time when the entity was modified as number of milliseconds sinceJanuary 1, 1970, 00:00:00 GMT.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • onBeforeInsert

        @PreInsert() void onBeforeInsert()

        Sets the create time before the inserting the entity into the database table.

      • onBeforeUpdate

        @PreUpdate() void onBeforeUpdate()

        Sets the create time before the inserting the entity into the database table.

      • getModifiedTime

         long getModifiedTime()

        Gets the date and time when the entity was modified as number of milliseconds sinceJanuary 1, 1970, 00:00:00 GMT.