Package com.maker.passwordmaker
Class PasswordMakerListener
java.lang.Object
com.maker.passwordmaker.PasswordMakerListener
Listener class for password encoding.
This class listens for the PrePersist event and encodes any fields annotated with PasswordMaker.
- Since:
- 2024. 6. 3.
- Author:
- yongjunhong
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
prePersist
(Object entity) Method that is called before an entity is persisted.
-
Constructor Details
-
PasswordMakerListener
public PasswordMakerListener()
-
-
Method Details
-
prePersist
Method that is called before an entity is persisted. This method encodes any fields in the entity that are annotated with PasswordMaker.- Parameters:
entity
- the entity that is about to be persisted
-