Class RoleConverter

java.lang.Object
org.ctan.site.domain.account.RoleConverter
All Implemented Interfaces:
jakarta.persistence.AttributeConverter<Role,String>

public class RoleConverter extends Object implements jakarta.persistence.AttributeConverter<Role,String>
The class RoleConverter contains the converter from and to Role values to strings.
  • Constructor Details

    • RoleConverter

      public RoleConverter()
  • Method Details

    • convertToDatabaseColumn

      public String convertToDatabaseColumn(@NonNull @NonNull Role role)
      Specified by:
      convertToDatabaseColumn in interface jakarta.persistence.AttributeConverter<Role,String>
      See Also:
      • AttributeConverter.convertToDatabaseColumn(java.lang.Object)
    • convertToEntityAttribute

      public Role convertToEntityAttribute(@NonNull @NonNull String value)
      Specified by:
      convertToEntityAttribute in interface jakarta.persistence.AttributeConverter<Role,String>
      See Also:
      • AttributeConverter.convertToEntityAttribute(java.lang.Object)