Package com.jk.webstack.services.email
Class Email
java.lang.Object
com.jk.core.jpa.JKBaseEntity
com.jk.webstack.services.email.Email
- All Implemented Interfaces:
Serializable
This entity class represents an email in the application.
This class extends the JKBaseEntity
class.
- Version:
- 1.0
- Author:
- Dr. Jalal H. Kiswani
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
This method is invoked before the entity is persisted (inserted) into the database.void
This method is invoked before the entity is updated in the database.Methods inherited from class com.jk.core.jpa.JKBaseEntity
equals, postUpdate
-
Constructor Details
-
Email
public Email()
-
-
Method Details
-
prePersist
public void prePersist()This method is invoked before the entity is persisted (inserted) into the database.This method initializes the creation and modification dates with the current date and time.
- Overrides:
prePersist
in classJKBaseEntity
-
preUpdate
public void preUpdate()This method is invoked before the entity is updated in the database.This method updates the modification date with the current date and time.
- Overrides:
preUpdate
in classJKBaseEntity
-