org.hibernate.search.cfg

## Class SortableFieldMapping

- java.lang.Object
- - org.hibernate.search.cfg.SortableFieldMapping

-     public class SortableFieldMapping
      extends Object

  Configures a sortable field. Equivalent to `@SortableField`.
  Author:
    Gunnar Morling

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SortableFieldMapping(String fieldName, PropertyDescriptor property, EntityDescriptor entity, SearchMapping mapping)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `EntityMapping` | `entity(Class<?> entityType)`
    `FacetMapping` | `facet()`
    `FieldMapping` | `field()`
    `NumericFieldMapping` | `numericField()`
    `PropertyMapping` | `property(String name, ElementType type)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### SortableFieldMapping

          public SortableFieldMapping(String fieldName,
                                      PropertyDescriptor property,
                                      EntityDescriptor entity,
                                      SearchMapping mapping)

  - ### Method Detail

    - #### field

          public FieldMapping field()

    - #### numericField

          public NumericFieldMapping numericField()

    - #### facet

          public FacetMapping facet()

    - #### property

          public PropertyMapping property(String name,
                                          ElementType type)

    - #### entity

          public EntityMapping entity(Class<?> entityType)

Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved