Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
05-15-2020 11:33 AM
The debug output from OGM parsing 6 simple classes is yielding ~167000 instances of debug messages similar to…
17:30:21.925 [main] DEBUG org.neo4j.ogm.context.GraphEntityMapper - Unable to find a matching @RelationshipEntity for (56992)-[PART_OF]->(56988)
Coupled with the fact that …
Unable to find a matching @RelationshipEntity for (56990)-[PART_OF]->(56988)
Unable to find a matching @RelationshipEntity for (56992)-[INSTANCE_OF]->(56990)
Unable to find a matching @RelationshipEntity for (56992)-[REFERS_TO]->(57035)
Unable to find a matching @RelationshipEntity for (56994)-[REFERS_TO]->(57035)
Unable to find a matching @RelationshipEntity for (56994)-[INSTANCE_OF]->(56990)
Unable to find a matching @RelationshipEntity for (56993)-[INSTANCE_OF]->(56990)
Unable to find a matching @RelationshipEntity for (56993)-[PART_OF]->(56988)
Unable to find a matching @RelationshipEntity for (56995)-[PART_OF]->(56988)
Unable to find a matching @RelationshipEntity for (56995)-[REFERS_TO]->(57036)
Unable to find a matching @RelationshipEntity for (56994)-[REFERS_TO]->(57036)
Unable to find a matching @RelationshipEntity for (56994)-[PART_OF]->(56988)
Unable to find a matching @RelationshipEntity for (57055)-[PART_OF]->(56988)
Unable to find a matching @RelationshipEntity for (57055)-[REFERS_TO]->(57037)
leads me to think that perhaps I have made some kind of mistake with the annotation – but I cannot see where the problem is.
Hopefuly someone more experienced with Neo4j OGM can spot my stupid mistake or perhaps this is normal OGM behaviour?? - doesn't feel like it.
Thanks in advance for any bright ideas
Rod
05-15-2020 11:40 AM
In outline the classes are…
@NodeEntity
public abstract class CheckEntity implements SynchCheckEntities{
@Id
@GeneratedValue(strategy = UuidStrategy. class )
protected String givenIdentity;
…
}
05-15-2020 11:40 AM
@NodeEntity(label="CheckParent")
public abstract class AbstractCheck extends CheckEntity{
protected String description = null ;
protected String checkCode = null ;
protected String category = null ;
protected String severity = null ;
@Relationship(type="PART_OF", direction=Relationship. UNDIRECTED )
protected Set associatedGroup = new HashSet();
@Relationship(type="REFERS_TO", direction=Relationship. UNDIRECTED )
protected Set associatedHyperlinks = new HashSet();
…
}
05-15-2020 11:41 AM
public class CheckGroup extends CheckEntity{
private String title = null ;
private String findingBaseColour = null ;
private String identityPrefix = null ;
private String findingBaseText = null ;
…
}
public class Check extends AbstractCheck {
protected String specifiedIdentity = null ;
@Relationship(type="INSTANCE_OF", direction=Relationship. OUTGOING )
private CheckTemplate associatedTemplate = null ;
…
}
public class CheckTemplate extends AbstractCheck{
private String title= null ;
…
}
public class CheckOrientedHyperlinks extends CheckEntity{
@Convert(URLConverter. class )
private URL refersTo;
….
}
05-17-2020 11:17 PM
This is indeed normal behaviour for the DEBUG
level.
I can understand that this is annoying given the fact that you see so much repetition of it. But this is due to the fact that Neo4j-OGM logs this message for every relationship it wants to map from the graph to the entities.
05-18-2020 02:18 AM
Hi,
I understand that logging at DEBUG level will generate a high volume of messages. My query (probably badly explained - apologies) was really why was this happening for @RelationshipEntity when none of the parsed classes has that annotation. It just seemed a bit odd and made me wonder if I had inadvertently screwed up the annotations within my classes.
05-18-2020 06:20 AM
There is some logic that checks if a @RelationshipEntity
exists for the relationship coming back from the server. This means that for every relationship, you will get this log entry.
Nothing to worry about, but I can understand that this is annoying.
All the sessions of the conference are now available online