I'm using Java 8 + Spring 5.1.5R + mybatis 3.5.6 with PostgreSQL 11.
I executed select query with date, timestamp, timestamptz columns like this.
SELECT t_date ,t_timestamp ,t_timestamptz FROM a_table
And I can see ibatis log like this.
t_timestamptz column has it's offset and t_timestamp column has no offset.
DEBUG org.apache.ibatis.logging.jdbc.BaseJdbcLogger.debug(137) - ==> Preparing: SELECT t_date ,t_timestamp ,t_timestamptz FROM a_table LIMIT ?
DEBUG org.apache.ibatis.logging.jdbc.BaseJdbcLogger.debug(137) - ==> Parameters: 1(Int)
TRACE org.apache.ibatis.logging.jdbc.BaseJdbcLogger.trace(143) - <== Columns: t_date ,t_timestamp ,t_timestamptz
TRACE org.apache.ibatis.logging.jdbc.BaseJdbcLogger.trace(143) - <== Row: 2020-11-05, 2020-11-05 22:27:44, 2020-11-05 22:27:56.402235+09
DEBUG org.apache.ibatis.logging.jdbc.BaseJdbcLogger.debug(137) - <== Total: 1
But, I can see only java.sql.Timestamp and java.sql.Date.
t_date: java.sql.Date: 2020-11-05
t_timestamptz: java.sql.Timestamp: 2020-11-05 22:27:56.402235
t_timestamp: java.sql.Timestamp: 2020-11-05 22:27:44.0
How can I get timestamptz column's value with offset and timestamp column's value without offset?