diff --git a/src/main/scala/com/wordnik/swagger/codegen/BasicJavaGenerator.scala b/src/main/scala/com/wordnik/swagger/codegen/BasicJavaGenerator.scala index 62eee39f1b..12a95ca0c5 100644 --- a/src/main/scala/com/wordnik/swagger/codegen/BasicJavaGenerator.scala +++ b/src/main/scala/com/wordnik/swagger/codegen/BasicJavaGenerator.scala @@ -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.*", diff --git a/src/test/scala/BasicJavaGeneratorTest.scala b/src/test/scala/BasicJavaGeneratorTest.scala index b9d54bd03d..e1bb958f4c 100644 --- a/src/test/scala/BasicJavaGeneratorTest.scala +++ b/src/test/scala/BasicJavaGeneratorTest.scala @@ -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.*") } /*