File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
src/test/java/org/javawebstack/orm/test/automigrate Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 1111import org .junit .jupiter .api .BeforeEach ;
1212import org .junit .jupiter .api .Test ;
1313
14+ import java .sql .Date ;
1415import java .sql .SQLException ;
1516import java .sql .Timestamp ;
1617import java .util .HashMap ;
1718import java .util .Map ;
19+ import java .util .UUID ;
1820
1921public class CommonTest extends ORMTestCase {
2022
@@ -72,6 +74,10 @@ public void testPrimitiveIntegerDatatype() throws SQLException {
7274
7375 columnDataTypeMap .put ("timestamp" , "timestamp(6)" );
7476
77+ columnDataTypeMap .put ("date" , "date" );
78+
79+ columnDataTypeMap .put ("uuid" , "varchar(36)" );
80+
7581 for (Map .Entry <String , String > entry : columnDataTypeMap .entrySet ()) {
7682 checkedField = new Field (tableName , entry .getKey ());
7783
@@ -141,5 +147,11 @@ public static class Datatype extends Model {
141147
142148 @ Column
143149 Timestamp timestamp ;
150+
151+ @ Column
152+ Date date ;
153+
154+ @ Column
155+ UUID uuid ;
144156 }
145157}
You can’t perform that action at this time.
0 commit comments