mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-07 10:58:55 +00:00
Added import mapping for Timestamp
This commit is contained in:
parent
c09adc4539
commit
6087181634
@ -84,6 +84,7 @@ class BasicJavaGenerator extends BasicGenerator {
|
|||||||
override def importMapping = Map(
|
override def importMapping = Map(
|
||||||
"File" -> "java.io.File",
|
"File" -> "java.io.File",
|
||||||
"Date" -> "java.util.Date",
|
"Date" -> "java.util.Date",
|
||||||
|
"Timestamp" -> "java.sql.Timestamp",
|
||||||
"Array" -> "java.util.*",
|
"Array" -> "java.util.*",
|
||||||
"ArrayList" -> "java.util.*",
|
"ArrayList" -> "java.util.*",
|
||||||
"List" -> "java.util.*",
|
"List" -> "java.util.*",
|
||||||
|
@ -123,6 +123,8 @@ class BasicJavaGeneratorTest extends FlatSpec with ShouldMatchers {
|
|||||||
it should "honor the import mapping" in {
|
it should "honor the import mapping" in {
|
||||||
config.importMapping("Date") should be ("java.util.Date")
|
config.importMapping("Date") should be ("java.util.Date")
|
||||||
config.importMapping("DateTime") should be ("org.joda.time.*")
|
config.importMapping("DateTime") should be ("org.joda.time.*")
|
||||||
|
config.importMapping("TimeStamp") should be ("java.sql.Timestamp")
|
||||||
|
config.importMapping("Set") should be ("java.util.*")
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user