Package org.hibernate.search.metadata

Examples of org.hibernate.search.metadata.NumericFieldSettingsDescriptor


  public void testFieldDescriptorExplicitNumericOptions() {
    FieldDescriptor fieldDescriptor = getFieldDescriptor( Snafu.class, "numericField" );

    assertTrue( FieldSettingsDescriptor.Type.NUMERIC.equals( fieldDescriptor.getType() ) );

    NumericFieldSettingsDescriptor numericFieldSettingsDescriptor = fieldDescriptor.as(
        NumericFieldSettingsDescriptor.class
    );
    int expectedPrecisionStep = 16;
    assertEquals(
        "the numeric step should be " + expectedPrecisionStep,
        expectedPrecisionStep,
        numericFieldSettingsDescriptor.precisionStep()
    );
  }
View Full Code Here

TOP

Related Classes of org.hibernate.search.metadata.NumericFieldSettingsDescriptor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.