Class RoleConverter

java.lang.Object
org.flasby.login2.entity.RoleConverter
All Implemented Interfaces:
jakarta.persistence.AttributeConverter<Role,String>

public class RoleConverter extends Object implements jakarta.persistence.AttributeConverter<Role,String>
  • Constructor Details

    • RoleConverter

      public RoleConverter()
  • Method Details

    • convertToDatabaseColumn

      public String convertToDatabaseColumn(Role role)
      Specified by:
      convertToDatabaseColumn in interface jakarta.persistence.AttributeConverter<Role,String>
    • convertToEntityAttribute

      public Role convertToEntityAttribute(String dbData)
      Specified by:
      convertToEntityAttribute in interface jakarta.persistence.AttributeConverter<Role,String>