DATAES-874 - Deprecate parent-id related methods and fields.

Original PR: #488
This commit is contained in:
Peter-Josef Meisch
2020-06-28 16:48:20 +02:00
committed by GitHub
parent 7d8bc81fdd
commit ea98ef4533
12 changed files with 33 additions and 29 deletions

View File

@@ -169,16 +169,6 @@ public class MappingBuilderTests extends MappingContextBaseTests {
assertThat(entry.getPrice()).isCloseTo(BigDecimal.valueOf(price), Percentage.withPercentage(0.01));
}
@Test // DATAES-568
public void shouldCreateMappingForSpecifiedParentType() throws JSONException {
String expected = "{\"_parent\":{\"type\":\"parentType\"},\"properties\":{}}";
String mapping = getMappingBuilder().buildPropertyMapping(MinimalChildEntity.class);
assertEquals(expected, mapping, false);
}
@Test // DATAES-76
public void shouldBuildMappingWithSuperclass() throws JSONException {
@@ -668,19 +658,6 @@ public class MappingBuilderTests extends MappingContextBaseTests {
}
}
/**
* MinimalChildEntity
*
* @author Peter-Josef Meisch
*/
@Document(indexName = "test-index-minimal")
static class MinimalChildEntity {
@Nullable @Id private String id;
@Nullable @Parent(type = "parentType") private String parentId;
}
/**
* @author Rizwan Idrees
* @author Mohsin Husen