File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
main/scala/com/wordnik/swagger/codegen Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -84,9 +84,11 @@ class BasicJavaGenerator extends BasicGenerator {
84
84
override def importMapping = Map (
85
85
" File" -> " java.io.File" ,
86
86
" Date" -> " java.util.Date" ,
87
+ " Timestamp" -> " java.sql.Timestamp" ,
87
88
" Array" -> " java.util.*" ,
88
89
" ArrayList" -> " java.util.*" ,
89
90
" List" -> " java.util.*" ,
91
+ " Set" -> " java.util.*" ,
90
92
" DateTime" -> " org.joda.time.*" ,
91
93
" LocalDateTime" -> " org.joda.time.*" ,
92
94
" LocalDate" -> " org.joda.time.*" ,
Original file line number Diff line number Diff line change @@ -123,6 +123,8 @@ class BasicJavaGeneratorTest extends FlatSpec with ShouldMatchers {
123
123
it should " honor the import mapping" in {
124
124
config.importMapping(" Date" ) should be (" java.util.Date" )
125
125
config.importMapping(" DateTime" ) should be (" org.joda.time.*" )
126
+ config.importMapping(" Timestamp" ) should be (" java.sql.Timestamp" )
127
+ config.importMapping(" Set" ) should be (" java.util.*" )
126
128
}
127
129
128
130
/*
You can’t perform that action at this time.
0 commit comments