Why would Spring Data Neo4j domain scanning also picking up @Entity for JPA
I get
Of course it isn't a Node or Relationship entity. It is not annotated with either of those annotations. It is annotated with @Entity and @Table. I do not have any crossstore jars in my path. JPA scans only for @Entity so it doesn't pick up my Noe4j @NodeEntity. Why the other way around.Code:Caused by: java.lang.IllegalArgumentException: Invalid Domain Class class com.hdpoker.account.domain.user.AccountSecurity neither Node- nor RelationshipEntity at org.springframework.data.neo4j.repository.GraphRepositoryFactory.getRepositoryBaseClass(GraphRepositoryFactory.java:96) at org.springframework.data.repository.core.support.RepositoryFactorySupport.getRepositoryInformation(RepositoryFactorySupport.java:173) at org.springframework.data.repository.core.support.RepositoryFactorySupport.getRepository(RepositoryFactorySupport.java:133) at org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.getObject(RepositoryFactoryBeanSupport.java:125) at org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.getObject(RepositoryFactoryBeanSupport.java:41) at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:142)
I have in a domain package domain classes mixed with SDN annotations in one class, and JPA annotations in other classes. But none combined.
Mark


Reply With Quote