Doug Jones
Doug Jones
@NiteshKant 0.4.x branch
@NiteshKant No! I wasn't aware of that module. I'll give it a shot, thanks!
Update, I implemented a super simple test for this in my repo: https://github.com/dfjones/morphia/pull/1 Here's the whole test: ```java package dev.morphia.test.mapping; import static dev.morphia.query.filters.Filters.eq; import org.bson.Document; import org.testng.Assert; import org.testng.annotations.Test; import...
I found that the `LegacyQuery` also adds the discriminator using similar logic: ```java @Override @MorphiaInternal public Document toDocument() { final Document query = getQueryDocument(); EntityModel model = datastore.getMapper().getEntityModel(getEntityClass()); Entity entityAnnotation...