a.neo4j.mapping.Neo4jPersistentProperty: 73 - 字段的拥有类信息为空

a.neo4j.mapping.Neo4jPersistentProperty: 73 - Owning ClassInfo is null for field

此错误消息是什么意思?

2016-01-23 19:07:24,914  WARN ta.neo4j.mapping.Neo4jPersistentProperty:  73 - Owning ClassInfo is null for field: private java.lang.Long com.xenoterracide.rpf.AbstractPersistable.id and propertyDescriptor: org.springframework.beans.GenericTypeAwarePropertyDescriptor[name=id]

这是class

public abstract class AbstractPersistable implements Identified<Long> {

    private Long id;

    @Override
    public Long getId() {
        return this.id;
    }
}

我重组了我的包,我的配置中定义的 Neo4j 组件扫描不再正确。因此,如果您收到此错误,请确保 class 在 neo4j 会话的扫描路径内。

@Configuration
@Profile( Strings.Profiles.EMBEDDED )
class EmbeddedConfig extends Neo4jConfiguration {

    @Bean
    @Override
    @Scope( value = "session", proxyMode = ScopedProxyMode.TARGET_CLASS )
    public Session getSession() throws Exception {
        return super.getSession();
    }

    @Bean
    @Override
    public Neo4jServer neo4jServer() {
        return new InProcessServer();
    }

    @Bean
    @Override
    public SessionFactory getSessionFactory() {
        return new SessionFactory( Strings.PackagePaths.getModelPackages() );
    }
}