Re: Which Java class in the new java.time package shall be used to mapped timestamp?

Поиск
Список
Период
Сортировка
От David Wall
Тема Re: Which Java class in the new java.time package shall be used to mapped timestamp?
Дата
Msg-id 531F903A.5030604@computer.org
обсуждение исходный текст
Ответ на Which Java class in the new java.time package shall be used to mapped timestamp?  (Vernon E <vwu98034@lycos.com>)
Список pgsql-interfaces
On 3/11/2014 2:54 PM, Vernon E wrote:
> I have tried both LocalDateTime (without time zone informatio) and 
> ZonedDateTime (with time zone information) in the new java.time 
> package and get a same error:
> column "registeration_datetime" is of type timestamp without time zone but expression is of type bytea
>    Hint: You will need to rewrite or cast the expression.
>
> Which class I shall use?

java.sql.Timestamp is the normal type that maps to a PG timestamp field, 
and I'd recommend TIMESTAMP WITH TIME ZONE unless you are sure the time 
part is really not important.




В списке pgsql-interfaces по дате отправления:

Предыдущее
От: Vernon E
Дата:
Сообщение: Which Java class in the new java.time package shall be used to mapped timestamp?
Следующее
От: Florian Weimer
Дата:
Сообщение: Re: PQunescapebytea not reverse of PQescapebytea?