PostgreSQL資料庫型別 Java Mybatis 備註
Date new java.sql.Date(System.currentTimeMillis()).getTime(); JdbcType=Date Date default current_timestamp還是隻能精確到日期,不提供時分秒,試試Trigger吧
BIGINT java.math.BigInteger BIGINT

API文件中org.apache.ibatis.type.JdbcType列舉類的全部型別:
ARRAY
BIGINT
BINARY
BIT
BLOB
BOOLEAN
CHAR
CLOB
CURSOR
DATE
DECIMAL
DOUBLE
FLOAT
INTEGER
LONGVARBINARY
LONGVARCHAR
NCHAR
NCLOB
NULL
NUMERIC
NVARCHAR
OTHER
REAL
SMALLINT
STRUCT
TIME
TIMESTAMP
TINYINT
UNDEFINED
VARBINARY
VARCHAR