Last active
June 29, 2018 09:10
-
-
Save caina/c32286f78b4026132cb115368ead0874 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public News saveNews(News news) { | |
news.publishedAt = convertToDate(news.publishedAt); | |
orm.save(news); | |
} | |
private Timestamp convertToDate(String date) { | |
if(date == null) { | |
return null; | |
} | |
[.<implementation>.] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment