File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
src/test/java/org/javawebstack/orm/test/automigrate Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 1212import org .junit .jupiter .api .Test ;
1313
1414import java .sql .SQLException ;
15+ import java .sql .Timestamp ;
1516import java .util .HashMap ;
1617import java .util .Map ;
1718
@@ -69,6 +70,8 @@ public void testPrimitiveIntegerDatatype() throws SQLException {
6970
7071 columnDataTypeMap .put ("byte_array" , "varbinary(255)" );
7172
73+ columnDataTypeMap .put ("timestamp" , "datetime(6)" );
74+
7275 for (Map .Entry <String , String > entry : columnDataTypeMap .entrySet ()) {
7376 checkedField = new Field (tableName , entry .getKey ());
7477
@@ -136,5 +139,7 @@ public static class Datatype extends Model {
136139 @ Column
137140 byte [] byteArray ;
138141
142+ @ Column
143+ Timestamp timestamp ;
139144 }
140145}
You can’t perform that action at this time.
0 commit comments