private HashMap < Class , String > buildDefaultDataTypeMap ( ) { return new HashMap < Class , String > ( ) { { put ( boolean . class , "BOOLEAN" ) ; put ( Boolean . class , "BOOLEAN" ) ; put ( byte . class , "BYTE" ) ; put ( Byte . class , "BYTE" ) ; put ( short . class , "INT" ) ; put ( Short . class , "INT" ) ; put ( int . class , "INT" ) ; put ( Integer . class , "INT" ) ; put ( long . class , "BIGINT" ) ; put ( Long . class , "BIGINT" ) ; put ( float . class , "DOUBLE PRECISION" ) ; put ( Float . class , "DOUBLE PRECISION" ) ; put ( double . class , "DOUBLE PRECISION" ) ; put ( Double . class , "DOUBLE PRECISION" ) ; put ( char . class , "CHAR" ) ; put ( Character . class , "CHAR" ) ; put ( Date . class , "BIGINT" ) ; put ( String . class , "VARCHAR" ) ; put ( Object . class , "VARCHAR" ) ; put ( Timestamp . class , "TIMESTAMP" ) ; put ( LocalDate . class , "TIMESTAMP" ) ; put ( LocalTime . class , "TIMESTAMP" ) ; put ( LocalDateTime . class , "TIMESTAMP" ) ; } } ; }
Build default data types