SampleSampletypeA worked example you read or clone. Evidence: it demonstrates, it never provides.See every one →What this type is →by SAPby SAPoriginPublished by SAP itself. A visible facet, never an input to a reading — a dormant official plugin reads exactly like a dormant independent one.See every one →Reference

xflights-java

The Java twin of capire/xflights: a CAP Java service managing Airlines, Airports and Flights master data, with its client package xflights-data pulled into a consuming app through Maven.

Run the Application class, or mvn spring-boot:run, to start it; the client package, xflights-data, is published to GitHub's Maven registry under the coordinates sap.capire:xflights-data, so a consuming application pulls it in through its pom.xml. It plays the same reuse role as the Node xflights package, master data a travel-booking application imports rather than redefines, using Maven's dependency mechanism instead of npm's.

Facts

Last pushLicenceApache-2.0

Where it sits

Lives in
Demonstrates
Data modellingCAPData modellingcapabilityDefining the shape of data before anything serves it: entities and their types, how they relate, and the projections and views that services and applications consume.
Flavors

Who is behind it

Capire Docs & SamplesCapire Docs & SamplesOrganisationMaintains this
In the atlas: maintains 20, wrote 1
@capire
maintainerMarc BeckerPersonContributes to this
In the atlas: contributes to 7
@beckermarc
BraunMatthiasPersonContributes to this
In the atlas: contributes to 8
@BraunMatthias
Markus OfterdingerPersonContributes to this
In the atlas: contributes to 6
@mofterdinger
Stefan HenkePersonContributes to this
In the atlas: contributes to 6
@StefanHenke
Steffen WaldmannPersonContributes to this
In the atlas: contributes to 25
@swaldmann
VladimirPersonContributes to this
In the atlas: contributes to 5
@vmikhailenko
6 contributors

What it declares

Every artifact

Type
Sample
Origin
By SAP
Use as
A reference

As a sample

Form
A reference application

Connections1

xflights-java connectionsxflights-javaPROVIDES→ demonstrates1demonstrates authoredData modelling

ArchitectureBetaRead from the sample's deployment descriptor. Some of the connections it states are not drawn yet.

as mta.yaml states it at 52df2fb, read
SAP BTP, Cloud Foundry Runtimexflightsxflights-srv, javaxflights-srvxflights-db-deployer, hdbxflights-db-deployerCloud Identity Services, identity, applicationCloud IdentityServiceshana, hana, hdi-sharedhana
SAPnot SAP's, or the project's own

Bound, and not drawn

Bound in the descriptor, not joined to an entry

hana

README

quoted from capire/xflights-java under Apache-2.0, read
capire/xflights-java/README.mdOn GitHub

capire/xflights-java

This is a CAP Java application that manages master data like Airlines, Airports, and Flights. It provides a reuse package for clients to consume this data. It is used in the xtravels-java application.

Run

To start the xflights application, run the Application class in your preferred IDE. Alternatively, execute mvn spring-boot:run on the command line.

Reuse

You can reuse the client package by adding it to your dependencies in your app's pom.xml:

<dependency>
    <groupId>sap.capire</groupId>
    <artifactId>xflights-data</artifactId>
    <version>1.0.0-SNAPSHOT</version>
</dependency>
_Using GitHub Packages..._

The reuse package is published to the GitHub Packages registry, which requires you to authenticate to GitHub's Maven repository by adding the following to your ~/.m2/settings.xml:

<servers>
  <!-- ... -->
  <server>
    <id>github</id>
    <username>USERNAME</username>
    <password>TOKEN</password>
  </server>
</servers>

As password you're using a Personal Access Token (classic) with read:packages scope. Read more about it in Authenticating to GitHub Packages.

Usage

Then you can import and use the entities in your CDS models like this:

using { sap.capire.flights.data.Flights } from 'capire/xflights-data';
// mashup with your own entities ...

Find examples for that in the xtravels-java application.

License

Copyright (c) 2025 SAP SE or an SAP affiliate company. All rights reserved. This file is licensed under the Apache Software License, version 2.0 except as noted otherwise in the LICENSE file.

Apache-2.0, read

Details

Sources3
Added by handdiscovered herechecked
github.com/capire/xflights-javatree, pushes, contributors, CIchecked
README.mdquoted, and what the entry declareschecked

Sources are graph entities: the same page may back several entries, and an unreachable source flags every row that rests on it.

Compatibility and provenance
discovered viaAdded by hand
first seen in the atlas
ecosystem and domaincap, data-and-persistence
Flavors1
Java
“This is a CAP Java application that manages master data like Airlines, Airports, and Flights.” — capire/xflights-java — READMEchecked
Contributors6

From the repository’s contributor list, .

History in the atlas1
  1. First seen.
For your agent
Ref
artifact:capire-xflights-java
JSON
/artifacts/capire-xflights-java.json
MCP
Connecting an agent