Class VerificationTokenEntity
java.lang.Object
com.app.persistence.entity.BaseEntity
com.app.persistence.entity.VerificationTokenEntity
JPA Entity representing a verification token for user activation.
This class is a JPA entity mapped to the `verification_token` table in the database. It stores the verification token used for user account activation and includes a reference to the associated user. The entity also contains a method to validate the token by checking if it has expired or not based on the stored timestamp.
The entity is linked to the `users` table via a one-to-one relationship with the `UserEntity`. The `timeStamp` represents the expiration time of the token in nanoseconds.
-
Field Summary
Fields inherited from class com.app.persistence.entity.BaseEntity
id
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.app.persistence.entity.BaseEntity
equals, hashCode
-
Constructor Details
-
VerificationTokenEntity
public VerificationTokenEntity()
-
-
Method Details
-
validate
-
expired
public boolean expired()
-