Package org.springframework.data.neo4j.aspects

Examples of org.springframework.data.neo4j.aspects.Person.removeLabel()


            assertEquals("Wrong label "+l.name(),true, asList(labelNames).contains(l.name()));
        }
        assertThat(p.getLabels(), hasItems(labelNames));
        Person loaded = neo4jTemplate.findOne(p.getId(), Person.class);
        assertThat(loaded.getLabels(), hasItems(labelNames));
        loaded.removeLabel(labelNames[2]);
        assertThat(p.getLabels(), hasItems(labelNames[0], labelNames[1]));
        assertThat(loaded.getLabels(), hasItems(labelNames[0], labelNames[1]));
        loaded = neo4jTemplate.findOne(p.getId(), Person.class);
        assertThat(loaded.getLabels(), hasItems(labelNames[0],labelNames[1]));
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.