fluid-api/src/main/java/com/fluidbpm/program/api/vo/field/Field.java
@Override
	@XmlTransient
	public JSONObject toJsonMappingForElasticSearch() throws JSONException {

		String fieldNameUpperCamel = this.getFieldNameAsUpperCamel();
		if(fieldNameUpperCamel == null)
		{
			return null;
		}

		String elasticType = this.getElasticSearchFieldType();
		if(elasticType == null)
		{
			return null;
		}

		JSONObject returnVal = new JSONObject();

		returnVal.put(JSONMapping.Elastic.MAPPING_ONLY_TYPE, elasticType);

		return returnVal;
	}
@Override
	@XmlTransient
	public JSONObject toJsonMappingForElasticSearch() throws JSONException {

		String fieldNameUpperCamel = this.getFieldNameAsUpperCamel();
		if(fieldNameUpperCamel == null)
		{
			return null;
		}

		String elasticType = this.getElasticSearchFieldType();
		if(elasticType == null)
		{
			return null;
		}

		JSONObject returnVal = new JSONObject();

		returnVal.put(JSONMapping.Elastic.MAPPING_ONLY_TYPE, elasticType);

		return returnVal;
	}
@ Override @ XmlTransient public JSONObject toJsonMappingForElasticSearch ( ) throws JSONException { String fieldNameUpperCamel = this . getFieldNameAsUpperCamel ( ) ; if ( fieldNameUpperCamel == null ) { return null ; } String elasticType = this . getElasticSearchFieldType ( ) ; if ( elasticType == null ) { return null ; } JSONObject returnVal = new JSONObject ( ) ; returnVal . put ( JSONMapping . Elastic . MAPPING_ONLY_TYPE , elasticType ) ; return returnVal ; }
Creates the mapping object required by Elastic Search when making
use of enhanced data-types.

See {@code https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-types.html}.

@return {@code JSONObject} representation of {@code Field} for
ElasticSearch mapping.
@throws JSONException If there is a problem with the JSON Body.
Creates the mapping object required by Elastic Search when making use of enhanced data - types .