GitHub PullRequestReviewCommentEvent at 2014-05-21 10:52:04
Repository: hibernate-ogm
Actor: gunnarmorling
Payload: {"comment":{"url":"https://api.github.com/repos/hibernate/hibernate-ogm/pulls/comments/12890220","id":12890220,"diff_hunk":"@@ -0,0 +1,325 @@\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.neo4j.dialect.impl;\n+\n+import static org.hibernate.ogm.datastore.neo4j.dialect.impl.NodeLabel.ENTITY;\n+\n+import java.util.HashMap;\n+import java.util.Map;\n+\n+import org.hibernate.ogm.grid.AssociationKey;\n+import org.hibernate.ogm.grid.EntityKey;\n+import org.hibernate.ogm.grid.Key;\n+import org.hibernate.ogm.grid.RowKey;\n+import org.neo4j.cypher.javacompat.ExecutionEngine;\n+import org.neo4j.cypher.javacompat.ExecutionResult;\n+import org.neo4j.graphdb.DynamicRelationshipType;\n+import org.neo4j.graphdb.GraphDatabaseService;\n+import org.neo4j.graphdb.Node;\n+import org.neo4j.graphdb.Relationship;\n+import org.neo4j.graphdb.RelationshipType;\n+import org.neo4j.graphdb.ResourceIterator;\n+\n+/**\n+ * Provides a way to create, remove and look for nodes and relationships using the cypher query language.\n+ * <p>\n+ * A relationship is created using an {@link AssociationKey} and a {@link RowKey}. The type of new relationship is the\n+ * value returned by {@link AssociationKey#getCollectionRole()}. The names and values of the properties of the\n+ * relationship are the corresponding {@link RowKey#getColumnNames()} and {@link RowKey#getColumnValues()}. An additional\n+ * property {@link #TABLE} is added containing the name of the table that would contain this values in a relational\n+ * database.\n+ * <p>\n+ * A node is created using an {@link EntityKey}. A node is labeled with {@link NodeLabel#ENTITY} and with the value","path":"neo4j/src/main/java/org/hibernate/ogm/datastore/neo4j/dialect/impl/CypherCRUD.java","position":36,"original_position":36,"commit_id":"e0359d72ba60f48ba4063bcc5d381ae983583eb5","original_commit_id":"e0359d72ba60f48ba4063bcc5d381ae983583eb5","user":{"login":"gunnarmorling","id":28612,"avatar_url":"https://avatars.githubusercontent.com/u/28612?","gravatar_id":"8e25c0ca4bf25113bd9c0ccc5d118164","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},"body":"Just minor, but I'd first discuss entities and then associations.","created_at":"2014-05-21T10:52:04Z","updated_at":"2014-05-21T10:52:04Z","html_url":"https://github.com/hibernate/hibernate-ogm/pull/320#discussion_r12890220","pull_request_url":"https://api.github.com/repos/hibernate/hibernate-ogm/pulls/320","_links":{"self":{"href":"https://api.github.com/repos/hibernate/hibernate-ogm/pulls/comments/12890220"},"html":{"href":"https://github.com/hibernate/hibernate-ogm/pull/320#discussion_r12890220"},"pull_request":{"href":"https://api.github.com/repos/hibernate/hibernate-ogm/pulls/320"}}}}