Package org.springframework.data.neo4j.aspects

Examples of org.springframework.data.neo4j.aspects.SubGroup


    @Test
    @Transactional
    @Ignore
    public void testFindGroupByInstanceIndex() {
        Group group = persist(new SubGroup());
        group.setIndexLevelName("indexLevelNameValue");
        Index<Node> subGroupIndex = neo4jTemplate.getIndex(SubGroup.class);
        final Node found = subGroupIndex.get("indexLevelName", "indexLevelNameValue").getSingle();
        final SubGroup foundEntity = neo4jTemplate.createEntityFromState(found, SubGroup.class, neo4jTemplate.getMappingPolicy(SubGroup.class));
        assertEquals(group, foundEntity);
    }
View Full Code Here


    private static final String NAME_VALUE2 = "aSecondName";

    @Test
    @Transactional
    public void testFindGroupByInstanceIndex() {
        Group group = persist(new SubGroup());
        group.setIndexLevelName("indexLevelNameValue");
        Index<Node> subGroupIndex = neo4jTemplate.getIndex(SubGroup.class);
        final Node found = subGroupIndex.get("indexLevelName", "indexLevelNameValue").getSingle();
        final SubGroup foundEntity = neo4jTemplate.createEntityFromState(found, SubGroup.class, neo4jTemplate.getMappingPolicy(SubGroup.class));
        assertEquals(group, foundEntity);
    }
View Full Code Here

TOP

Related Classes of org.springframework.data.neo4j.aspects.SubGroup

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.