src/main/java/cz/diribet/aqdef/catalog/CatalogField.java
/**
	 * Gets the {@link CatalogField field} which is identifier (surrogate key) of the given catalog.
	 *
	 * @param catalog
	 * @return
	 */
Gets the  CatalogField field which is identifier (surrogate key) of the given catalog.
@param catalog
@return
Gets the CatalogField field which is identifier ( surrogate key ) of the given catalog . @param catalog @return
public static CatalogField idFieldOfCatalog(Catalog catalog) {
		return fieldsOfCatalog(catalog)
									.stream()
									.filter(field -> field.getType() == CatalogFieldType.ID)
									.findAny()
									.orElseThrow(() -> new IllegalStateException("Catalog " + catalog + " does not have ID column defined."));
	}
public static CatalogField idFieldOfCatalog ( Catalog catalog ) { return fieldsOfCatalog ( catalog ) . stream ( ) . filter ( field -> field . getType ( ) == CatalogFieldType . ID ) . findAny ( ) . orElseThrow ( ( ) -> new IllegalStateException ( "Catalog " + catalog + " does not have ID column defined." ) ) ; }
Gets the {@link CatalogField field} which is identifier (surrogate key) of the given catalog.
Gets the { @link CatalogField field } which is identifier ( surrogate key ) of the given catalog .