-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
in: mappingMapping and conversion infrastructureMapping and conversion infrastructurestatus: ideal-for-contributionAn issue that a contributor can help us withAn issue that a contributor can help us withtype: bugA general bugA general bug
Description
provirus opened DATAMONGO-2496 and commented
Having the following classes:
@Document
class Parent {
@Id
private String id;
private Child child;
// Getters and setters
}
class Child {
private Long id;
private String name;
// Getters and setters
}
Spring Data produces the following document:
{
"_id": ...,
"child": {
"_id": 10,
"name": "Foo"
}
}
The expected document is:
{
"_id": ...,
"child": {
"id": 10,
"name": "Foo"
}
}
Since there is no need for id mapping on the child document
Affects: 2.2.5 (Moore SR5)
Issue Links:
- DATACMNS-1714 Static Entity Metadata
sleepo581, PieterDr, kkurczewski, takanuva15, Jeadonara and 2 more
Metadata
Metadata
Assignees
Labels
in: mappingMapping and conversion infrastructureMapping and conversion infrastructurestatus: ideal-for-contributionAn issue that a contributor can help us withAn issue that a contributor can help us withtype: bugA general bugA general bug