我的項目正在使用 postgres,并且還有一些使用 hsqldb (2.4.1) 的內(nèi)存測試Client 實體具有以下字段:@CreationTimestamp@Temporal(TemporalType.TIMESTAMP)@Column(updatable = false)private Date creationDate;其中 Date 是 java.util.Date該表是使用“帶時區(qū)的時間戳”創(chuàng)建的CREATE TABLE client ( id bigint NOT NULL, creationdate timestamp with time zone, ...)當我運行測試時,dbunit 正在加載一個包含數(shù)據(jù)的文件,我收到此錯誤:2018-08-21 09:39:03,194 [warn] o.d.u.SQLHelper - CLIENT.CREATIONDATE data type (2014, 'TIMESTAMP WITH TIME ZONE') not recognized and will be ignored. See FAQ for more information.所以我想我應該擴展 HSQLDialect 來支持它。但是我不知道如何,我需要 registerColumnType() 還是 registerHibernateType() ?或者也許是一些演員?
添加回答
舉報
0/150
提交
取消