Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
06-13-2022 05:29 AM
I am using SDN 6. but in this version, I got this type of error: the Caused by: java.lang.IllegalArgumentException: The repository id type class java.lang.String differs from the entity id type class java.lang.Long. at org.springframework.data.neo4j.repository.support.Neo4jRepositoryFactorySupport.assertIdentifierType(Neo4jRepositoryFactorySupport.java:34) at org.springframework.data.neo4j.repository.support.Neo4jRepositoryFactory.getTargetRepository(Neo4jRepositoryFactory.java:72) at org.springframework.data.repository.core.support.RepositoryFactorySupport.getRepository(RepositoryFactorySupport.java:324) at org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.lambda$afterPropertiesSet$5(RepositoryFactoryBeanSupport.java:322) at org.springframework.data.util.Lazy.getNullable(Lazy.java:230) at org.springframework.data.util.Lazy.get(Lazy.java:114) at org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.afterPropertiesSet(RepositoryFactoryBeanSupport.java:328) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1863) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1800) ... 58 common frames omitted. In my model, I connect the relationship with the self node. so how i resolve this issue?
Here my Model,
@Node
public abstract class A{
@Id @GeneratedValue @Getter @Setter protected Long id;
}
public class B extends A{
}
public class C extends A{
private String a;
private String d;
@Relationship(type = "Owner_of", direction = Direction.INCOMING)
private B b; @Relationship(type = "Parent_of", direction = Direction.OUTGOING)
private C c;
} In this structure i get Error.
All the sessions of the conference are now available online