Package org.springframework.data.neo4j.fieldaccess

Examples of org.springframework.data.neo4j.fieldaccess.FieldAccessorFactoryFactory


        final NoopRelationshipTypeRepresentationStrategy relationshipTypeRepresentationStrategy = new NoopRelationshipTypeRepresentationStrategy();
        factoryBean.setRelationshipTypeRepresentationStrategy(relationshipTypeRepresentationStrategy);
        factoryBean.setConversionService(new Neo4jConversionServiceFactoryBean().getObject());
        factoryBean.setEntityStateHandler(entityStateHandler);

        EntityStateFactory<Node> nodeEntityStateFactory = new NodeEntityStateFactory(mappingContext, new FieldAccessorFactoryFactory() {
                    public DelegatingFieldAccessorFactory create(Neo4jTemplate template) {
                        return new NodeDelegatingFieldAccessorFactory(template);
                    }
                });

        EntityStateFactory<Relationship> relationshipEntityStateFactory = new RelationshipEntityStateFactory(mappingContext, new FieldAccessorFactoryFactory() {
                    public DelegatingFieldAccessorFactory create(Neo4jTemplate template) {
                        return new RelationshipDelegatingFieldAccessorFactory(template);
                    }
                });
        factoryBean.setNodeEntityStateFactory(nodeEntityStateFactory);
View Full Code Here

TOP

Related Classes of org.springframework.data.neo4j.fieldaccess.FieldAccessorFactoryFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.