src/sap.ui.core/src/sap/ui/core/util/DraftEnabledMockServer.js
function(sEntityset, mEntitySets) {
			var aSemanticKey = [];
			for (var annotationsProperty in this._oDraftMetadata.annotations) {
				if (annotationsProperty.lastIndexOf(mEntitySets[sEntityset].type) > -1) {
					aSemanticKey = this._oDraftMetadata.annotations[annotationsProperty][this._oConstants.COM_SAP_VOCABULARIES_COMMON_V1_SEMANTICKEY] || [];
					break;
				}
			}
			var aSemanticKeys = [];
			var element;
			for (var i = 0; i < aSemanticKey.length; i++) {
				element = aSemanticKey[i];
				for (var key in element) {
					aSemanticKeys.push(element[key]);
				}
			}
			return aSemanticKeys;
		}
function(sEntityset, mEntitySets) {
			var aSemanticKey = [];
			for (var annotationsProperty in this._oDraftMetadata.annotations) {
				if (annotationsProperty.lastIndexOf(mEntitySets[sEntityset].type) > -1) {
					aSemanticKey = this._oDraftMetadata.annotations[annotationsProperty][this._oConstants.COM_SAP_VOCABULARIES_COMMON_V1_SEMANTICKEY] || [];
					break;
				}
			}
			var aSemanticKeys = [];
			var element;
			for (var i = 0; i < aSemanticKey.length; i++) {
				element = aSemanticKey[i];
				for (var key in element) {
					aSemanticKeys.push(element[key]);
				}
			}
			return aSemanticKeys;
		}
function ( sEntityset , mEntitySets ) { var aSemanticKey = [ ] ; for ( var annotationsProperty in this . _oDraftMetadata . annotations ) { if ( annotationsProperty . lastIndexOf ( mEntitySets [ sEntityset ] . type ) > - 1 ) { aSemanticKey = this . _oDraftMetadata . annotations [ annotationsProperty ] [ this . _oConstants . COM_SAP_VOCABULARIES_COMMON_V1_SEMANTICKEY ] || [ ] ; break ; } } var aSemanticKeys = [ ] ; var element ; for ( var i = 0 ; i < aSemanticKey . length ; i ++ ) { element = aSemanticKey [ i ] ; for ( var key in element ) { aSemanticKeys . push ( element [ key ] ) ; } } return aSemanticKeys ; }
Returns an array with key of the corresponding "draft-less" entity type
@param {string} sEntityset name of the entityset
@param {object} mEntitySets
@return {object} array with key of the corresponding "draft-less" entity type
Returns an array with key of the corresponding draft - less entity type