添加了空检查,因为这是最简单的.
@Override public Timestamp convertToDatabaseColumn(Long aLong) { if (aLong == null) return null; return new Timestamp(aLong); }