protected Object convertAssociation(Object source, Field field) { return convertAssociation(source, field.getProperty()); }
/** * Returns the mapped keyword considered defining a criteria for the given property. * * @param property * @param keyword * @return */ protected Document getMappedKeyword(Field property, Keyword keyword) { boolean needsAssociationConversion = property.isAssociation() && !keyword.isExists() && keyword.mayHoldDbRef(); Object value = keyword.getValue(); Object convertedValue = needsAssociationConversion ? convertAssociation(value, property) : getMappedValue(property.with(keyword.getKey()), value); return new Document(keyword.key, convertedValue); }
return convertAssociation(value, documentField);
protected Object convertAssociation(Object source, Field field) { return convertAssociation(source, field.getProperty()); }
/** * Returns the mapped keyword considered defining a criteria for the given property. * * @param property * @param keyword * @return */ protected Document getMappedKeyword(Field property, Keyword keyword) { boolean needsAssociationConversion = property.isAssociation() && !keyword.isExists() && keyword.mayHoldDbRef(); Object value = keyword.getValue(); Object convertedValue = needsAssociationConversion ? convertAssociation(value, property) : getMappedValue(property.with(keyword.getKey()), value); return new Document(keyword.key, convertedValue); }
return convertAssociation(value, documentField);