Can you reproduce the issue using the template here: https://github.com/neo4j-examples/neo4j-sdn-ogm-issue-report-template
> Am 01.06.2017 um 12:13 schrieb Joachim Nielandt <[email protected]>: > > Hello all, > > I have a weird problem, where it's not clear to me where I should be looking > for a solution. I created a simple model, with a superclass, to be used in > OGM: > > Entity > > private Long id; -> has getter > > Neo4JWord extends Entity > > some extra properties, not important here > > I can use OGM's session to persist multiple of these Neo4JWord objects, and > they appear correctly in the database. Each gets an ID assigned. > > Now I want to query those objects by their ID. I'm trying it with two > connections (a bolt connection and a ogm connection) > > 1: StatementResult test = boltSession.run("MATCH (a:Neo4JWord) WHERE id(a) = > {id} RETURN a", parameters("id", wordId)); > > 2: Result query1 = ogmSession.query("MATCH (a:Neo4JWord) WHERE id(a) = $id > RETURN a", params); > > 3: Neo4JWord load = ogmSession.load(Neo4JWord.class, wordId, 1); > > All three should be identical as far as I understand. The first two actually > return the correct data. The third line returns a null object. I'd love an > explanation here :). > > Thanks in advance, > Joa > > -- > You received this message because you are subscribed to the Google Groups > "Neo4j" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
