public FieldMapping(PropertyDescriptor property, EntityDescriptor entity, SearchMapping mapping) { this.mapping = mapping; this.entity = entity; this.property = property; this.field = new HashMap<String, Object>(); property.addField( field ); }
public FieldMapping(PropertyDescriptor property, EntityDescriptor entity, SearchMapping mapping) { this.mapping = mapping; this.entity = entity; this.property = property; this.field = new HashMap<String, Object>(); property.addField( field ); }
/** * @deprecated Only provided to avoid breaking the API in {@link NumericFieldMapping}, which extends this class. * Do not extend this class, just re-implement methods. */ @Deprecated FieldMapping(String fieldName, PropertyDescriptor property, EntityDescriptor entity, SearchMapping mapping) { this.mapping = mapping; this.entity = entity; this.property = property; Map<String, Object> existingField = getExistingField( property, fieldName ); if ( existingField != null ) { this.field = existingField; } else { this.field = new HashMap<String, Object>(); property.addField( field ); } }
/** * @deprecated Only provided to avoid breaking the API in {@link NumericFieldMapping}, which extends this class. * Do not extend this class, just re-implement methods. */ @Deprecated FieldMapping(String fieldName, PropertyDescriptor property, EntityDescriptor entity, SearchMapping mapping) { this.mapping = mapping; this.entity = entity; this.property = property; Map<String, Object> existingField = getExistingField( property, fieldName ); if ( existingField != null ) { this.field = existingField; } else { this.field = new HashMap<String, Object>(); property.addField( field ); } }