Class AgeGroupConverter
java.lang.Object
com.endurancetrio.data.competitor.model.converter.AgeGroupConverter
public class AgeGroupConverter
extends Object
implements jakarta.persistence.AttributeConverter<AgeGroup,String>
The
AgeGroupConverter class is responsible for converting the AgeGroup enum to
its corresponding database column representation and vice versa.
This converter is used to persist the AgeGroup enum as a string in the database. It
converts the enum to its code when storing it in the database and converts the code back to the
enum when retrieving it from the database.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
AgeGroupConverter
public AgeGroupConverter()
-
-
Method Details