blibli-future / athens

0 stars 1 forks source link

Make hibernate support java.time (java 8) #10

Closed riencus closed 7 years ago

riencus commented 7 years ago

I've noticed that JPA will save java.time (java 8) data type as a bytea not as Postgres Date type

 Column  |          Type          | Modifiers 
---------+------------------------+-----------
 nik     | character varying(255) | not null
 date    | bytea                  | 
 tap_in  | bytea                  | 
 tap_out | bytea                  | 

This pull request will make it possible to save java.time data type as Postgres data type. Like this:

 Column  |          Type          | Modifiers 
---------+------------------------+-----------
 nik     | character varying(255) | not null
 date    | date                   | 
 tap_in  | time without time zone | 
 tap_out | time without time zone | 

review anyone?

aamesaa commented 7 years ago

I think it's ok to merge this pull request