DATAES-874 - Deprecate parent-id related methods and fields.
Original PR: #488
This commit is contained in:
committed by
GitHub
parent
7d8bc81fdd
commit
ea98ef4533
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user