DATAMONGO-805 - Excluding DBRef field in a query causes a MappingException.
Previously we tried to convert all DBRef associations into appropriate DBRef structures even if they were to be ignored. We now ignore excluded properties in DBRef associations correctly.
Original pull request: #102.
pull/102/merge
Thomas Darimont12 years agocommitted byOliver Gierke
@ -465,6 +467,57 @@ public class MappingTests extends AbstractIntegrationTests {
@@ -465,6 +467,57 @@ public class MappingTests extends AbstractIntegrationTests {
@ -473,6 +526,10 @@ public class MappingTests extends AbstractIntegrationTests {
@@ -473,6 +526,10 @@ public class MappingTests extends AbstractIntegrationTests {
id=newObjectId().toString();
}
publicContainer(Stringid){
this.id=id;
}
@DBRefItemitem;
@DBRefList<Item>items;
}
@ -480,9 +537,26 @@ public class MappingTests extends AbstractIntegrationTests {
@@ -480,9 +537,26 @@ public class MappingTests extends AbstractIntegrationTests {