class ReservationStatusConverter implements AttributeConverter<ReservationStatus, String> {

    @Override
    public String convertToDatabaseColumn(ReservationStatus x) {
        if (null == x) {
            return "";
        }
        return x.name();
    }

}