{"action":"created","comment":{"url":"https://api.github.com/repos/hibernate/hibernate-ogm/pulls/comments/29418804","id":29418804,"diff_hunk":"@@ -0,0 +1,39 @@\n+/*\n+ * Hibernate OGM, Domain model persistence for NoSQL datastores\n+ *\n+ * License: GNU Lesser General Public License (LGPL), version 2.1 or later\n+ * See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.\n+ */\n+package org.hibernate.ogm.datastore.cassandra.type.impl;\n+\n+import org.hibernate.MappingException;\n+import org.hibernate.engine.spi.Mapping;\n+import org.hibernate.ogm.type.impl.AbstractGenericBasicType;\n+import org.hibernate.type.descriptor.java.CalendarDateTypeDescriptor;\n+\n+import java.util.Calendar;\n+import java.util.Date;\n+\n+/**\n+ * Cassandra doesn't do Calendar, but it does do Date, so convert them.","path":"cassandra/src/main/java/org/hibernate/ogm/datastore/cassandra/type/impl/CassandraCalendarDateType.java","position":18,"original_position":18,"commit_id":"9ed9aac2d9b1d568c2a2fb13e33489bffecb8a14","original_commit_id":"4929ba5e9ebbf1a4bf47ecc282b6cc076122b8be","user":{"login":"jhalliday","id":699246,"avatar_url":"https://avatars.githubusercontent.com/u/699246?v=3","gravatar_id":"","url":"https://api.github.com/users/jhalliday","html_url":"https://github.com/jhalliday","followers_url":"https://api.github.com/users/jhalliday/followers","following_url":"https://api.github.com/users/jhalliday/following{/other_user}","gists_url":"https://api.github.com/users/jhalliday/gists{/gist_id}","starred_url":"https://api.github.com/users/jhalliday/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhalliday/subscriptions","organizations_url":"https://api.github.com/users/jhalliday/orgs","repos_url":"https://api.github.com/users/jhalliday/repos","events_url":"https://api.github.com/users/jhalliday/events{/privacy}","received_events_url":"https://api.github.com/users/jhalliday/received_events","type":"User","site_admin":false},"body":"yup, at the cost of giving up any server side query ability, since CQL3 lacks the date manipulation functions that SQL has. May still be worth it though.  I'm inclined to go with what we've got for now and revisit it once the new types are available in CQL.","created_at":"2015-04-30T10:35:31Z","updated_at":"2015-04-30T10:35:31Z","html_url":"https://github.com/hibernate/hibernate-ogm/pull/518#discussion_r29418804","pull_request_url":"https://api.github.com/repos/hibernate/hibernate-ogm/pulls/518","_links":{"self":{"href":"https://api.github.com/repos/hibernate/hibernate-ogm/pulls/comments/29418804"},"html":{"href":"https://github.com/hibernate/hibernate-ogm/pull/518#discussion_r29418804"},"pull_request":{"href":"https://api.github.com/repos/hibernate/hibernate-ogm/pulls/518"}}},"pull_request":{"url":"https://api.github.com/repos/hibernate/hibernate-ogm/pulls/518","id":33153704,"html_url":"https://github.com/hibernate/hibernate-ogm/pull/518","diff_url":"https://github.com/hibernate/hibernate-ogm/pull/518.diff","patch_url":"https://github.com/hibernate/hibernate-ogm/pull/518.patch","issue_url":"https://api.github.com/repos/hibernate/hibernate-ogm/issues/518","number":518,"state":"open","locked":false,"title":"OGM-122 cassandra backend","user":{"login":"jhalliday","id":699246,"avatar_url":"https://avatars.githubusercontent.com/u/699246?v=3","gravatar_id":"","url":"https://api.github.com/users/jhalliday","html_url":"https://github.com/jhalliday","followers_url":"https://api.github.com/users/jhalliday/followers","following_url":"https://api.github.com/users/jhalliday/following{/other_user}","gists_url":"https://api.github.com/users/jhalliday/gists{/gist_id}","starred_url":"https://api.github.com/users/jhalliday/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhalliday/subscriptions","organizations_url":"https://api.github.com/users/jhalliday/orgs","repos_url":"https://api.github.com/users/jhalliday/repos","events_url":"https://api.github.com/users/jhalliday/events{/privacy}","received_events_url":"https://api.github.com/users/jhalliday/received_events","type":"User","site_admin":false},"body":"Phase one of the cassandra backend - basic connection, schema, types. Should handle single entities, but no association support yet.","created_at":"2015-04-13T11:00:34Z","updated_at":"2015-04-30T10:35:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4093640b2e54601081a60b6a34435ed56e75d24c","assignee":{"login":"gunnarmorling","id":28612,"avatar_url":"https://avatars.githubusercontent.com/u/28612?v=3","gravatar_id":"","url":"https://api.github.com/users/gunnarmorling","html_url":"https://github.com/gunnarmorling","followers_url":"https://api.github.com/users/gunnarmorling/followers","following_url":"https://api.github.com/users/gunnarmorling/following{/other_user}","gists_url":"https://api.github.com/users/gunnarmorling/gists{/gist_id}","starred_url":"https://api.github.com/users/gunnarmorling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gunnarmorling/subscriptions","organizations_url":"https://api.github.com/users/gunnarmorling/orgs","repos_url":"https://api.github.com/users/gunnarmorling/repos","events_url":"https://api.github.com/users/gunnarmorling/events{/privacy}","received_events_url":"https://api.github.com/users/gunnarmorling/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/hibernate/hibernate-ogm/pulls/518/commits","review_comments_url":"https://api.github.com/repos/hibernate/hibernate-ogm/pulls/518/comments","review_comment_url":"https://api.github.com/repos/hibernate/hibernate-ogm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hibernate/hibernate-ogm/issues/518/comments","statuses_url":"https://api.github.com/repos/hibernate/hibernate-ogm/statuses/9ed9aac2d9b1d568c2a2fb13e33489bffecb8a14","head":{"label":"jhalliday:master","ref":"master","sha":"9ed9aac2d9b1d568c2a2fb13e33489bffecb8a14","user":{"login":"jhalliday","id":699246,"avatar_url":"https://avatars.githubusercontent.com/u/699246?v=3","gravatar_id":"","url":"https://api.github.com/users/jhalliday","html_url":"https://github.com/jhalliday","followers_url":"https://api.github.com/users/jhalliday/followers","following_url":"https://api.github.com/users/jhalliday/following{/other_user}","gists_url":"https://api.github.com/users/jhalliday/gists{/gist_id}","starred_url":"https://api.github.com/users/jhalliday/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhalliday/subscriptions","organizations_url":"https://api.github.com/users/jhalliday/orgs","repos_url":"https://api.github.com/users/jhalliday/repos","events_url":"https://api.github.com/users/jhalliday/events{/privacy}","received_events_url":"https://api.github.com/users/jhalliday/received_events","type":"User","site_admin":false},"repo":{"id":21239273,"name":"hibernate-ogm","full_name":"jhalliday/hibernate-ogm","owner":{"login":"jhalliday","id":699246,"avatar_url":"https://avatars.githubusercontent.com/u/699246?v=3","gravatar_id":"","url":"https://api.github.com/users/jhalliday","html_url":"https://github.com/jhalliday","followers_url":"https://api.github.com/users/jhalliday/followers","following_url":"https://api.github.com/users/jhalliday/following{/other_user}","gists_url":"https://api.github.com/users/jhalliday/gists{/gist_id}","starred_url":"https://api.github.com/users/jhalliday/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhalliday/subscriptions","organizations_url":"https://api.github.com/users/jhalliday/orgs","repos_url":"https://api.github.com/users/jhalliday/repos","events_url":"https://api.github.com/users/jhalliday/events{/privacy}","received_events_url":"https://api.github.com/users/jhalliday/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jhalliday/hibernate-ogm","description":"Hibernate Object/Grid Mapper","fork":true,"url":"https://api.github.com/repos/jhalliday/hibernate-ogm","forks_url":"https://api.github.com/repos/jhalliday/hibernate-ogm/forks","keys_url":"https://api.github.com/repos/jhalliday/hibernate-ogm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jhalliday/hibernate-ogm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jhalliday/hibernate-ogm/teams","hooks_url":"https://api.github.com/repos/jhalliday/hibernate-ogm/hooks","issue_events_url":"https://api.github.com/repos/jhalliday/hibernate-ogm/issues/events{/number}","events_url":"https://api.github.com/repos/jhalliday/hibernate-ogm/events","assignees_url":"https://api.github.com/repos/jhalliday/hibernate-ogm/assignees{/user}","branches_url":"https://api.github.com/repos/jhalliday/hibernate-ogm/branches{/branch}","tags_url":"https://api.github.com/repos/jhalliday/hibernate-ogm/tags","blobs_url":"https://api.github.com/repos/jhalliday/hibernate-ogm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jhalliday/hibernate-ogm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jhalliday/hibernate-ogm/git/refs{/sha}","trees_url":"https://api.github.com/repos/jhalliday/hibernate-ogm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jhalliday/hibernate-ogm/statuses/{sha}","languages_url":"https://api.github.com/repos/jhalliday/hibernate-ogm/languages","stargazers_url":"https://api.github.com/repos/jhalliday/hibernate-ogm/stargazers","contributors_url":"https://api.github.com/repos/jhalliday/hibernate-ogm/contributors","subscribers_url":"https://api.github.com/repos/jhalliday/hibernate-ogm/subscribers","subscription_url":"https://api.github.com/repos/jhalliday/hibernate-ogm/subscription","commits_url":"https://api.github.com/repos/jhalliday/hibernate-ogm/commits{/sha}","git_commits_url":"https://api.github.com/repos/jhalliday/hibernate-ogm/git/commits{/sha}","comments_url":"https://api.github.com/repos/jhalliday/hibernate-ogm/comments{/number}","issue_comment_url":"https://api.github.com/repos/jhalliday/hibernate-ogm/issues/comments{/number}","contents_url":"https://api.github.com/repos/jhalliday/hibernate-ogm/contents/{+path}","compare_url":"https://api.github.com/repos/jhalliday/hibernate-ogm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jhalliday/hibernate-ogm/merges","archive_url":"https://api.github.com/repos/jhalliday/hibernate-ogm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jhalliday/hibernate-ogm/downloads","issues_url":"https://api.github.com/repos/jhalliday/hibernate-ogm/issues{/number}","pulls_url":"https://api.github.com/repos/jhalliday/hibernate-ogm/pulls{/number}","milestones_url":"https://api.github.com/repos/jhalliday/hibernate-ogm/milestones{/number}","notifications_url":"https://api.github.com/repos/jhalliday/hibernate-ogm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jhalliday/hibernate-ogm/labels{/name}","releases_url":"https://api.github.com/repos/jhalliday/hibernate-ogm/releases{/id}","created_at":"2014-06-26T12:02:50Z","updated_at":"2015-04-28T14:52:43Z","pushed_at":"2015-04-28T14:52:43Z","git_url":"git://github.com/jhalliday/hibernate-ogm.git","ssh_url":"git@github.com:jhalliday/hibernate-ogm.git","clone_url":"https://github.com/jhalliday/hibernate-ogm.git","svn_url":"https://github.com/jhalliday/hibernate-ogm","homepage":"http://ogm.hibernate.org","size":10678,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"hibernate:master","ref":"master","sha":"855e3a0fe7773ff7647c5d31a2edc502695ddf75","user":{"login":"hibernate","id":348262,"avatar_url":"https://avatars.githubusercontent.com/u/348262?v=3","gravatar_id":"","url":"https://api.github.com/users/hibernate","html_url":"https://github.com/hibernate","followers_url":"https://api.github.com/users/hibernate/followers","following_url":"https://api.github.com/users/hibernate/following{/other_user}","gists_url":"https://api.github.com/users/hibernate/gists{/gist_id}","starred_url":"https://api.github.com/users/hibernate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hibernate/subscriptions","organizations_url":"https://api.github.com/users/hibernate/orgs","repos_url":"https://api.github.com/users/hibernate/repos","events_url":"https://api.github.com/users/hibernate/events{/privacy}","received_events_url":"https://api.github.com/users/hibernate/received_events","type":"Organization","site_admin":false},"repo":{"id":1608936,"name":"hibernate-ogm","full_name":"hibernate/hibernate-ogm","owner":{"login":"hibernate","id":348262,"avatar_url":"https://avatars.githubusercontent.com/u/348262?v=3","gravatar_id":"","url":"https://api.github.com/users/hibernate","html_url":"https://github.com/hibernate","followers_url":"https://api.github.com/users/hibernate/followers","following_url":"https://api.github.com/users/hibernate/following{/other_user}","gists_url":"https://api.github.com/users/hibernate/gists{/gist_id}","starred_url":"https://api.github.com/users/hibernate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hibernate/subscriptions","organizations_url":"https://api.github.com/users/hibernate/orgs","repos_url":"https://api.github.com/users/hibernate/repos","events_url":"https://api.github.com/users/hibernate/events{/privacy}","received_events_url":"https://api.github.com/users/hibernate/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hibernate/hibernate-ogm","description":"Hibernate Object/Grid Mapper","fork":false,"url":"https://api.github.com/repos/hibernate/hibernate-ogm","forks_url":"https://api.github.com/repos/hibernate/hibernate-ogm/forks","keys_url":"https://api.github.com/repos/hibernate/hibernate-ogm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hibernate/hibernate-ogm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hibernate/hibernate-ogm/teams","hooks_url":"https://api.github.com/repos/hibernate/hibernate-ogm/hooks","issue_events_url":"https://api.github.com/repos/hibernate/hibernate-ogm/issues/events{/number}","events_url":"https://api.github.com/repos/hibernate/hibernate-ogm/events","assignees_url":"https://api.github.com/repos/hibernate/hibernate-ogm/assignees{/user}","branches_url":"https://api.github.com/repos/hibernate/hibernate-ogm/branches{/branch}","tags_url":"https://api.github.com/repos/hibernate/hibernate-ogm/tags","blobs_url":"https://api.github.com/repos/hibernate/hibernate-ogm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hibernate/hibernate-ogm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hibernate/hibernate-ogm/git/refs{/sha}","trees_url":"https://api.github.com/repos/hibernate/hibernate-ogm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hibernate/hibernate-ogm/statuses/{sha}","languages_url":"https://api.github.com/repos/hibernate/hibernate-ogm/languages","stargazers_url":"https://api.github.com/repos/hibernate/hibernate-ogm/stargazers","contributors_url":"https://api.github.com/repos/hibernate/hibernate-ogm/contributors","subscribers_url":"https://api.github.com/repos/hibernate/hibernate-ogm/subscribers","subscription_url":"https://api.github.com/repos/hibernate/hibernate-ogm/subscription","commits_url":"https://api.github.com/repos/hibernate/hibernate-ogm/commits{/sha}","git_commits_url":"https://api.github.com/repos/hibernate/hibernate-ogm/git/commits{/sha}","comments_url":"https://api.github.com/repos/hibernate/hibernate-ogm/comments{/number}","issue_comment_url":"https://api.github.com/repos/hibernate/hibernate-ogm/issues/comments{/number}","contents_url":"https://api.github.com/repos/hibernate/hibernate-ogm/contents/{+path}","compare_url":"https://api.github.com/repos/hibernate/hibernate-ogm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hibernate/hibernate-ogm/merges","archive_url":"https://api.github.com/repos/hibernate/hibernate-ogm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hibernate/hibernate-ogm/downloads","issues_url":"https://api.github.com/repos/hibernate/hibernate-ogm/issues{/number}","pulls_url":"https://api.github.com/repos/hibernate/hibernate-ogm/pulls{/number}","milestones_url":"https://api.github.com/repos/hibernate/hibernate-ogm/milestones{/number}","notifications_url":"https://api.github.com/repos/hibernate/hibernate-ogm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hibernate/hibernate-ogm/labels{/name}","releases_url":"https://api.github.com/repos/hibernate/hibernate-ogm/releases{/id}","created_at":"2011-04-13T11:40:56Z","updated_at":"2015-04-28T16:35:25Z","pushed_at":"2015-04-30T08:46:48Z","git_url":"git://github.com/hibernate/hibernate-ogm.git","ssh_url":"git@github.com:hibernate/hibernate-ogm.git","clone_url":"https://github.com/hibernate/hibernate-ogm.git","svn_url":"https://github.com/hibernate/hibernate-ogm","homepage":"http://hibernate.org/ogm/","size":18475,"stargazers_count":150,"watchers_count":150,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":107,"mirror_url":null,"open_issues_count":6,"forks":107,"open_issues":6,"watchers":150,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hibernate/hibernate-ogm/pulls/518"},"html":{"href":"https://github.com/hibernate/hibernate-ogm/pull/518"},"issue":{"href":"https://api.github.com/repos/hibernate/hibernate-ogm/issues/518"},"comments":{"href":"https://api.github.com/repos/hibernate/hibernate-ogm/issues/518/comments"},"review_comments":{"href":"https://api.github.com/repos/hibernate/hibernate-ogm/pulls/518/comments"},"review_comment":{"href":"https://api.github.com/repos/hibernate/hibernate-ogm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hibernate/hibernate-ogm/pulls/518/commits"},"statuses":{"href":"https://api.github.com/repos/hibernate/hibernate-ogm/statuses/9ed9aac2d9b1d568c2a2fb13e33489bffecb8a14"}}}}