{"action":"created","issue":{"url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/3548","repository_url":"https://api.github.com/repos/jhipster/generator-jhipster","labels_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/3548/labels{/name}","comments_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/3548/comments","events_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/3548/events","html_url":"https://github.com/jhipster/generator-jhipster/issues/3548","id":153398041,"number":3548,"title":"JSR310 support for Cassandra","user":{"login":"cbornet","id":11633333,"avatar_url":"https://avatars.githubusercontent.com/u/11633333?v=3","gravatar_id":"","url":"https://api.github.com/users/cbornet","html_url":"https://github.com/cbornet","followers_url":"https://api.github.com/users/cbornet/followers","following_url":"https://api.github.com/users/cbornet/following{/other_user}","gists_url":"https://api.github.com/users/cbornet/gists{/gist_id}","starred_url":"https://api.github.com/users/cbornet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbornet/subscriptions","organizations_url":"https://api.github.com/users/cbornet/orgs","repos_url":"https://api.github.com/users/cbornet/repos","events_url":"https://api.github.com/users/cbornet/events{/privacy}","received_events_url":"https://api.github.com/users/cbornet/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jhipster/generator-jhipster/labels/feature%20request","name":"feature request","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-05-06T07:55:23Z","updated_at":"2016-05-06T14:44:30Z","closed_at":null,"body":"I would like to add JSR310 dates support for Cassandra. The 3.0 version of the datastax driver has built-in support for this so it would be quite easy if we upgrade the driver.\r\nTo note is that ZonedDateTime is mapped to CQL ```tuple<timestamp,varchar>``` to keep the timezone information and it is Instant that is mapped to CQL timestamp.\r\n\r\nActually, for datetime we currently use ZonedDateTime but I think it would be better to use Instant instead since we don't store the timezone information and we always convert to UTC before storage.\r\n\r\nSo some questions before implementing:\r\n- should we drop ZonedDateTime and use Instant (breaking change) ?\r\n- or should we have both ZonedDateTime and Instant in parallel (kinda redundant) ?\r\n- or should we use ZonedDateTime also for Cassandra ? In this case, do we use the datastax codec or do we write our own that maps to a simple timestamp (more compact than tuple<timestamp,varchar>) ?\r\n"},"comment":{"url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/comments/217459779","html_url":"https://github.com/jhipster/generator-jhipster/issues/3548#issuecomment-217459779","issue_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/3548","id":217459779,"user":{"login":"cbornet","id":11633333,"avatar_url":"https://avatars.githubusercontent.com/u/11633333?v=3","gravatar_id":"","url":"https://api.github.com/users/cbornet","html_url":"https://github.com/cbornet","followers_url":"https://api.github.com/users/cbornet/followers","following_url":"https://api.github.com/users/cbornet/following{/other_user}","gists_url":"https://api.github.com/users/cbornet/gists{/gist_id}","starred_url":"https://api.github.com/users/cbornet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbornet/subscriptions","organizations_url":"https://api.github.com/users/cbornet/orgs","repos_url":"https://api.github.com/users/cbornet/repos","events_url":"https://api.github.com/users/cbornet/events{/privacy}","received_events_url":"https://api.github.com/users/cbornet/received_events","type":"User","site_admin":false},"created_at":"2016-05-06T14:44:30Z","updated_at":"2016-05-06T14:44:30Z","body":"Yes, I don't know why we don't use spring-data-cassandra. @jdubois ?"}}