@Test void convertToEntityAttribute() { assertThat(durationConverter.convertToEntityAttribute(threeDaysString)).isEqualTo(threeDaysDuration); assertThat(durationConverter.convertToEntityAttribute(threeHoursString)).isEqualTo(threeHoursDuration); assertThat(durationConverter.convertToEntityAttribute(threeMinutesString)).isEqualTo(threeMinutesDuration); assertThat(durationConverter.convertToEntityAttribute(threeSecondsString)).isEqualTo(threeSecondsDuration); assertThat(durationConverter.convertToEntityAttribute(null)).isNull(); }
@Override public Duration convertToEntityAttribute(String durationString) { if (durationString != null) { return Duration.parse(durationString); } else { return null; } }
DurationConverter implements AttributeConverter<Duration, String> { @Override public Duration convertToEntityAttribute(String durationString) { if (durationString != null) { return Duration.parse(durationString); } else { return null; } } }
DurationConverter implements AttributeConverter<Duration, String> { @Override public Duration convertToEntityAttribute(String durationString) { if (durationString != null) { return Duration.parse(durationString); } else { return null; } }  }
DurationConverter implements AttributeConverter<Duration, String> { @Override public Duration convertToEntityAttribute(String durationString) { if (durationString != null) { return Duration.parse(durationString); } else { return null; } }  @Override String convertToDatabaseColumn(Duration duration); @Override Duration convertToEntityAttribute(String durationString); }
DurationConverter implements AttributeConverter<Duration, String> { @Override public Duration convertToEntityAttribute(String durationString) { if (durationString != null) { return Duration.parse(durationString); } else { return null; } }  @Override String convertToDatabaseColumn(Duration duration); @Override Duration convertToEntityAttribute(String durationString);  }