use of org.springframework.data.relational.core.mapping.PersistentPropertyPathExtension in project spring-data-jdbc by spring-projects.
the class JdbcIdentifierBuilderUnitTests method qualifiersForLists.
// DATAJDBC-326
@Test
public void qualifiersForLists() {
PersistentPropertyPathExtension path = getPath("moreChildren");
Identifier identifier = //
JdbcIdentifierBuilder.forBackReferences(converter, path, //
"parent-eins").withQualifier(path, //
"list-index-eins").build();
//
assertThat(identifier.getParts()).extracting("name", "value", //
"targetType").containsExactlyInAnyOrder(//
tuple(quoted("DUMMY_ENTITY"), "parent-eins", UUID.class), //
tuple(quoted("DUMMY_ENTITY_KEY"), "list-index-eins", Integer.class));
}
Aggregations