Class PasswordMakerListener

java.lang.Object
com.maker.passwordmaker.PasswordMakerListener

@Component public class PasswordMakerListener extends Object
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 Details

    • PasswordMakerListener

      public PasswordMakerListener()
  • Method Details

    • prePersist

      @Transactional public void prePersist(Object entity)
      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