Added import mapping for Timestamp

This commit is contained in:
Ganesh Subramanian 2014-08-21 12:10:14 +05:30
parent c09adc4539
commit 6087181634
2 changed files with 3 additions and 0 deletions

View File

@ -84,6 +84,7 @@ class BasicJavaGenerator extends BasicGenerator {
override def importMapping = Map(
"File" -> "java.io.File",
"Date" -> "java.util.Date",
"Timestamp" -> "java.sql.Timestamp",
"Array" -> "java.util.*",
"ArrayList" -> "java.util.*",
"List" -> "java.util.*",

View File

@ -123,6 +123,8 @@ class BasicJavaGeneratorTest extends FlatSpec with ShouldMatchers {
it should "honor the import mapping" in {
config.importMapping("Date") should be ("java.util.Date")
config.importMapping("DateTime") should be ("org.joda.time.*")
config.importMapping("TimeStamp") should be ("java.sql.Timestamp")
config.importMapping("Set") should be ("java.util.*")
}
/*