You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If one has an entity person with a manual handled reference (without the morphia @Reference annotation) saving an ObjectId in the object for a reference to an Address entity as shown below.
classPerson {
@IdObjectIdid;
Stringname;
// manual reference to an addressObjectIdaddressId;
}
the morphia serializer doesn't respect the query:
QPerson.person.addressId.eq(<objectId>)
as shown in the code in the com.mysema.query.mongodb.MongodbSerializer#getKeyForPath:
If one has an entity person with a manual handled reference (without the morphia
@Reference
annotation) saving an ObjectId in the object for a reference to an Address entity as shown below.the morphia serializer doesn't respect the query:
as shown in the code in the com.mysema.query.mongodb.MongodbSerializer#getKeyForPath:
every path with an objectId type on field automatically gets translated to
_id
instead of theaddressId
as shown in the query path expression.The text was updated successfully, but these errors were encountered: