@Test public void the_conversion_of_a_null_is_the_empty_string() { String value = new ReservationStatusConverter().convertToDatabaseColumn(null); assertThat(value).isEmpty(); }
@Override public String convertToDatabaseColumn(ReservationStatus x) { if (null == x) { return ""; } return x.name(); }
ReservationStatusConverter implements AttributeConverter<ReservationStatus, String> { @Override public String convertToDatabaseColumn(ReservationStatus x) { if (null == x) { return ""; } return x.name(); } }
ReservationStatusConverter implements AttributeConverter<ReservationStatus, String> { @Override public String convertToDatabaseColumn(ReservationStatus x) { if (null == x) { return ""; } return x.name(); }  }
ReservationStatusConverter implements AttributeConverter<ReservationStatus, String> { @Override public String convertToDatabaseColumn(ReservationStatus x) { if (null == x) { return ""; } return x.name(); }  @Override String convertToDatabaseColumn(ReservationStatus x); @Override ReservationStatus convertToEntityAttribute(String y); }
ReservationStatusConverter implements AttributeConverter<ReservationStatus, String> { @Override public String convertToDatabaseColumn(ReservationStatus x) { if (null == x) { return ""; } return x.name(); }  @Override String convertToDatabaseColumn(ReservationStatus x); @Override ReservationStatus convertToEntityAttribute(String y);  }