Package org.springframework.data.neo4j.aspects

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


    }

    @Test
    @Transactional
    public void testFindAllGroupsByIndex() {
        Group group = persist(new Group());
        group.setName(NAME_VALUE);
        Group group2 = persist(new Group());
        group2.setName(NAME_VALUE);
        final Iterable<Group> found = this.groupRepository.findAllByPropertyValue(NAME, NAME_VALUE);
        final Collection<Group> result = IteratorUtil.addToCollection(found.iterator(), new HashSet<Group>());
        assertEquals(new HashSet<>(Arrays.asList(group, group2)), result);
    }
View Full Code Here


    }

    @Test
    @Transactional
    public void testFindAllGroupsByNonNumericIndexedNumber() {
        final Group group = new Group();
        final byte value = (byte) 100;
        group.setSecret(value);
        groupRepository.save(group);
        final PropertyContainer node = neo4jTemplate.getPersistentState(group);
        final Iterable<Group> found = this.groupRepository.findAllByPropertyValue("secret", value);
        assertEquals(1, IteratorUtil.count(found));
        final Node foundWithTemplate = neo4jTemplate.lookup("Group","secret", value).to(Node.class).singleOrNull();
View Full Code Here

TOP

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

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.