@Test public void null_values_are_converted_to_null() { assertNull(new LocalDateTimeConverter().convertToDatabaseColumn(null)); }
@Override public Timestamp convertToDatabaseColumn(LocalDateTime localDateTime) { if (null == localDateTime) { return null; } return Timestamp.valueOf(localDateTime); }
LocalDateTimeConverter implements AttributeConverter<LocalDateTime, Timestamp> { @Override public Timestamp convertToDatabaseColumn(LocalDateTime localDateTime) { if (null == localDateTime) { return null; } return Timestamp.valueOf(localDateTime); } }
LocalDateTimeConverter implements AttributeConverter<LocalDateTime, Timestamp> { @Override public Timestamp convertToDatabaseColumn(LocalDateTime localDateTime) { if (null == localDateTime) { return null; } return Timestamp.valueOf(localDateTime); }  }
LocalDateTimeConverter implements AttributeConverter<LocalDateTime, Timestamp> { @Override public Timestamp convertToDatabaseColumn(LocalDateTime localDateTime) { if (null == localDateTime) { return null; } return Timestamp.valueOf(localDateTime); }  @Override Timestamp convertToDatabaseColumn(LocalDateTime localDateTime); @Override LocalDateTime convertToEntityAttribute(Timestamp dbData); }
LocalDateTimeConverter implements AttributeConverter<LocalDateTime, Timestamp> { @Override public Timestamp convertToDatabaseColumn(LocalDateTime localDateTime) { if (null == localDateTime) { return null; } return Timestamp.valueOf(localDateTime); }  @Override Timestamp convertToDatabaseColumn(LocalDateTime localDateTime); @Override LocalDateTime convertToEntityAttribute(Timestamp dbData);  }