use of org.neo4j.ogm.domain.social.Individual in project neo4j-ogm by neo4j.
the class ArraysMappingTest method shouldGenerateCypherToPersistCollectionOfBoxedPrimitivesToArrayOfPrimitives.
@Test
public void shouldGenerateCypherToPersistCollectionOfBoxedPrimitivesToArrayOfPrimitives() {
Individual individual = new Individual();
individual.setName("Gary");
individual.setAge(36);
individual.setBankBalance(99.25f);
individual.setFavouriteRadioStations(new Vector<>(Arrays.asList(97.4, 105.4, 98.2)));
session.save(individual);
session.clear();
assertThat(session.query("MATCH (i:Individual {name:'Gary', age:36, bankBalance:99.25, code:0, favouriteRadioStations:[97.4, 105.4, 98.2]}) " + "return i", emptyMap()).queryResults()).hasSize(1);
}
Aggregations