Skip to content

Commit 3ddcb1e

Browse files
Chang constructor parameters to fit the SQL Mapper
1 parent 594edf4 commit 3ddcb1e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/main/java/org/javawebstack/orm/SQLType.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,21 @@
33
import java.sql.Date;
44
import java.sql.Timestamp;
55

6+
// The class passed as constructor determines
67
public enum SQLType {
78

89
// Divided by category and ordered by byte size (MySQL sizes)
910
TINYINT(Boolean.class),
1011
SMALLINT(Short.class),
11-
// Not in use for any java data type
12-
//MEDIUMINT(),
12+
MEDIUMINT(Integer.class),
1313
INT(Integer.class),
1414
BIGINT(Long.class),
1515

1616
FLOAT(Float.class),
1717
DOUBLE(Double.class),
1818

19-
CHAR(char.class),
19+
// No native char method except for a char stream
20+
CHAR(String.class),
2021
VARCHAR(String.class),
2122
TEXT(String.class),
2223

0 commit comments

Comments
 (0)