BlogBlogtypeA post on somebody's own site or a community platform. Nobody edits it after publication, so it dates from the day it was written.See every one →SAP Community

First Java Cap Application

A step-by-step walkthrough of a first CAP Java project: com.sap.cds:cds-services-archetype scaffolds the initial Maven project, and the domain model is then rewritten in the db folder with entities, the cuid and managed aspects, associations, compositions and a CodeList, so a hand-coded event handler serving a single entity gives way to a service that CAP's generic persistence handling serves without custom code. It deploys that model to SQLite for local development — cds deploy --to sqlite, then a Spring profile pointing at the generated database file — and ends by adding an index.cds so the model and service can be published as a reusable npm module.

Where it sits

Explains
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.Database connectorsCAPDatabase connectorscapabilityConnecting an application’s data model and queries to a database, including the differences in supported queries, types and schema management between database implementations. Changing an existing schema belongs to [schema evolution](capability:schema-evolution).GeneratorsCAPGeneratorscapabilityGetting from nothing to a project that runs, and from a project that runs to one that has the piece you just decided you need. Two different moments: the first is a one-time decision about layout, the second recurs for the life of the project.
Since then
Data modelling has changed 3 times since this was published, most recently in @sap/cds 9.9.0, 2026-04-23
Source
reachable

Who is behind it

bruce_wang3author

Before you read it

ApplicabilityCore changedData modelling has changed 3 times since this was published, most recently in @sap/cds 9.9.0, 2026-04-23.

This is a derived prompt to re-check the work, not a claim that the work is wrong. Exact stale statements are recorded separately after editorial review.

Properties

About this work

declared and crawled
Published
declared
Published on
declared
Views
crawled
8,909

For data-modelling

on the edge
Applies in
authored
cap

For database-connectors

on the edge
Applies in
authored
cap

For generators

on the edge
Applies in
authored
cap

More on this77

Group by77 of 77 pieces
Piece, what it offersStill applies
Also explainingData modelling77
CAP Foundry: Engineering SAP CAP Applications from Business Intent with Guardrailed AI
SAP Community, Shahid
nothing recorded
Connect SAP CAP (Node.js) to On-Premise/Private PostgreSQL using SAP Cloud Connector
SAP Community, KalaikovanThe reasoningA recipe
Core changed
Deep Insert in SAP CAPM Using Composition and Fiori Elements
SAP Community, Talari Hari KumarThe reasoningA recipeRunnable code
nothing recorded
Fullstack CAP Application with HANA Cloud (Decoupled Architecture) [Part-4]
SAP Community, sanjucsThe reasoningA recipe
Core changed
Fullstack CAP Application with HANA Cloud (Decoupled Architecture) [Part-3]
SAP Community, sanjucsThe reasoning
nothing recorded
Fullstack CAP Application with HANA Cloud (Decoupled Architecture) [Part-1]
SAP Community, sanjucsThe reasoningA recipeRunnable code
Core changed
Building a CAP App with Fiori Integration – Part 1: Environment & HANA Cloud Setup
SAP Community, SuryaRamesh, part 1 of 2The reasoning
nothing recorded
CAP Initializr: Generate SAP CAP Projects in Seconds
SAP Community, Saptarshi017The reasoning
nothing recorded
SAP CAP on HANA XSA: Scaling Industrial Data Applications Beyond the Cloud
SAP Community, rgadirovThe reasoningRunnable code
Core changed
Part 1: How to create CAPM project in BAS
SAP Community, Vennilla00The reasoningA recipe
Core changed
Part 2: Creating and Deploying a CAP Application with PostgreSQL, Hyperscaler Option
SAP Community, yashbhosle789, part 2 of 2The reasoningA recipe
Core changed
Part 1: Creating and Deploying a SAP CAP Application with SAP HANA on SAP BTP (Cloud Foundry)
SAP Community, yashbhosle789, part 1 of 2The reasoningA recipe
Core changed
UI5 MCP Server Got Extended for UI Integration Cards Generation
SAP Community, daniel_vladinov
nothing recorded
Prompt-Driven Development: Building Full-Stack SAP CAP Apps from User Stories
SAP Community, AnuradhaDhinganThe reasoning
nothing recorded
Building an Enterprise Application Using Fiori Elements and CAP - Part 1
SAP Community, Farooq, part 1 of 3The reasoning
nothing recorded
Create a CAP Application with SAP HANA Cloud from Scratch and Deploy to Cloud Foundry
SAP Community, MaheshSirsat1708The reasoningA recipe
Core changed
Creating a Hybrid CAP (Node.js) Profile with PostgreSQL on BTP from Business Application Studio
SAP Community, valentincadartThe reasoningRunnable code
Core changed
Give Your AI Agent Some Tools: Introducing the UI5 MCP Server
SAP Community, Merlin Beutlberger
nothing recorded
Create CDS Views and expose through OData service in CAPM
SAP Community, VenkateshMundru
nothing recorded
Joule Studioがリリースされたので早速CAPアプリを自然言語で操作するカスタムスキルを構築してみた
SAP Community, takayuki_tanaka
nothing recorded
A CAP Plugin for Flexible Number Range Management: cds-numberrange-plugin
SAP Community, abdulbasitThe reasoningRunnable code
nothing recorded
Understanding Projections in CAPM: Select Only What You Need!
SAP Community, Avisek_The reasoning
nothing recorded
SAP Fiori Application Generator Available in Open Source
SAP Community, jlong
nothing recorded
Lets Talk to the Database - CAP & SQLite Powered by Google Gemini-2.5-Pro
SAP Community, ShivamShuklaSAPThe reasoning
nothing recorded
SAP CAP With Prostgres Serice in BTP
SAP Community, satya-dev
nothing recorded
Using HANA Cloud’s "VECTOR_EMBEDDING" Function in CAP
SAP Community, Mio YasutakeThe reasoningRunnable code
nothing recorded
SAP CAP Lessons Learned: SQLite is single threaded, HANA is not
SAP Community, LucasMagriniRigo
nothing recorded
SAP CAP Lessons Learned: Run a CAP app using SQLite on SAP BTP - Cloud Foundry
SAP Community, LucasMagriniRigoThe reasoning
nothing recorded
Configure an SAP CAP Application to Connect to an SAP HANA Cloud Database in Another Global Account or Subaccount
SAP Community, JhoelAnthonyRamosRomeroPEThe reasoning
nothing recorded
SQLite as database for a multi-target (/productive) CAP Application
SAP Community, Christopher_KetzlerThe reasoningA recipeRunnable code
Core changed
Using Postgresql Database in Cloud Application Programming model
SAP Community, Arun KrishnamoorthyThe reasoningA recipeRunnable code
Core changed
CAP, CDS, CDL, CSN and jq - finding associations
SAP Community, DJ AdamsThe reasoning
nothing recorded
Sharing SAP HANA Cloud instance to multiple subaccounts and creating HDI containers
SAP Community, Kazuhiko TakataThe reasoningRunnable code
Core changed
2024/01最新版!Productivity Toolsを使ったCAPバックエンド開発②~HANA Cloud編~
SAP Community, takayuki_tanakaA recipe
Core changed
SAP CAP(Cloud Application Programming)开发框架概述
SAP Community, ArthurYang
nothing recorded
CAP PostgreSql setup local debugging using Docker - Part 2
SAP Community, ramonlee5A recipe
Core changed
CAP with PostgreSQL DB alternate to HANA Cloud DB - Part 1
SAP Community, ramonlee5The reasoning
nothing recorded
Open Sourcing CAP – how to learn more or get involved
SAP Community, Fempel
nothing recorded
SAP CAP (Java) with Amazon Aurora PostgreSQL
SAP Community, shanthakumar_krishnaswamyThe reasoningA recipeRunnable code
Core changed
SAP CAP (Java) with Azure Cosmos DB for PostgreSQL
SAP Community, shanthakumar_krishnaswamyThe reasoningA recipeRunnable code
Core changed
Run and Deploy SAP CAP (Java) with PostgreSQL using Official Database Adapter @cap-js/postgres
SAP Community, shanthakumar_krishnaswamyThe reasoningA recipeRunnable code
Version drift
Lets Deep dive into CAPM and HANA Cloud --> HANACap
SAP Community, shivamshukla12The reasoningRunnable code
Core changed
Run and Deploy SAP CAP (Node.js or Java) with PostgreSQL on SAP BTP Cloud Foundry
SAP Community, TiaXuThe reasoningA recipeRunnable code
Core changed
#CAP-TechBytes Input Validation
SAP Community, ThajunnizaThe reasoning
nothing recorded
Run and Deploy SAP CAP (Java) with PostgreSQL on SAP BTP Cloud Foundry
SAP Community, shanthakumar_krishnaswamyThe reasoningRunnable code
1 stale part
SFSFとHANA Cloudを使用するCAPのアプリケーション開発
SAP Community, rasaiA recipeRunnable code
Core changed
How to create an API to run a HANA Cloud Stored Procedure in Cloud Foundry
SAP Community, gonzalo_hernan_sendraThe reasoningRunnable code
Core changed
Upload data from excel in CAP (Node.js)
SAP Community, KM11Runnable code
Core changed
Distributed Resiliency of SAP CAP applications using SAP HANA Cloud (Multi-Zone Replication)
SAP Community, shanthakumar_krishnaswamyThe reasoning
nothing recorded
加速开发和部署的CAP CDS和Fiori一些实用命令
SAP Community, TiaXuThe reasoningA recipeRunnable code
Core changed
Useful CAP CDS and Fiori Commands to Accelerate Development and Deployment
SAP Community, TiaXu
nothing recorded
Testing your CAP HANA Artifacts with jest – including multitenancy, hdbprocedure and hdbview
SAP Community, TristanThe reasoningA recipeRunnable code
Core changed
How I migrated my on-prem xsa cds3+hana solution to cds6+sqlite
SAP Community, alex_myakinkiiThe reasoningRunnable code
Core changed
Extend SAP SuccessFactors on SAP BTP with CAP - Deploy to SAP HANA Cloud
SAP Community, ale_biagiThe reasoning
nothing recorded
SAP CAP Recent Enhancements the HANA Dev Should Know About
SAP Community, Thomas Jung
nothing recorded
SAP CAP Adapter to expose OData as custom REST Service
SAP Community, Former Member
nothing recorded
Create a Business Service using CDS, Node.js, SQLite and a OData service
SAP Community, raybantonThe reasoningA recipeRunnable code
Core changed
Creating structured types, enums and named aspects using the CDS Graphical Modeler
SAP Community, Xiao-fei_SongThe reasoning
nothing recorded
Deploying CAP services with the in-memory SQLite database
SAP Community, liam_mischewskiThe reasoning
nothing recorded
Importing @sap/cds common.cds to your CAP project using the CDS Graphical Modeler
SAP Community, Xiao-fei_Song
nothing recorded
cds deploy to sqlite in-memory database
SAP Community, AndrewBarnard
nothing recorded
Simple steps to deploy your CAP project to HANA cloud
SAP Community, OmPrakashJhaThe reasoning
nothing recorded
SAP BTP Showcase - Use SAP Cloud Application Programming to do Native Development on HANA Cloud
SAP Community, former_member271284The reasoningA recipeRunnable code
Core changed
SAP BTP Showcase – SAP Continuous Integration and Delivery (SAP CI&D) for SAP HANA Cloud
SAP Community, gcalixtosThe reasoningRunnable code
Core changed
SAP Business Application Studio – Using SAP HANA Tools with SAP Cloud Application Programming Model projects
SAP Community, Former MemberThe reasoningA recipeRunnable code
Core changed
My Learnings in SAP-CAP Using MongoDB
SAP Community, krish469The reasoningRunnable code
Gone quiet
SAP Cloud Application Programming Model(CAP):概要およびデモ - Part 1
SAP Community, rasai, part 1 of 2
nothing recorded
Run and Deploy CAP with PostgreSQL on SAP BTP Cloud Foundry (Node.js)
SAP Community, Mike ZaschkaThe reasoningRunnable code
1 stale part
Getting started with CAP on PostgreSQL (Node.js)
SAP Community, Mike ZaschkaThe reasoningRunnable code
1 stale part
PostgreSQL persistence adapter for CAP (Node.js)
SAP Community, Volker BuzekThe reasoningRunnable code
Superseded
cf-create-app: Create End-to-End apps and deploy to Cloud Foundry in minutes
SAP Community, former_member604013The reasoningA recipeRunnable code
Core changed
Computed field example in CAP
SAP Community, DJ AdamsThe reasoningA recipeRunnable code
Core changed
SAP Cloud Platform Backend service: Tutorial [11]: CDS : magic: key: generation
SAP Community, CarlosRoggan
nothing recorded
Develop a full stack Business application with SAP Cloud Application Programming Model
SAP Community, former_member584731
nothing recorded
Learn how to define constraints declaratively in your CDS model
SAP Developer Center, SAPThe reasoningA recipe
nothing recorded
Analyze and optimize ABAP Cloud model apps built on core data services
SAP TechEd — session catalogueThe reasoning
nothing recorded
Use SAP HANA as the Database for a CAP Java Application
SAP Developer Center, SAPThe reasoningA recipe
nothing recorded

Details

Graph5 edges
POINTS OUT →
explainsData modellingcapability, core and community
explainsDatabase connectorscapability, core and community
explainsGeneratorscapability, core and community
published onSAP Communitypublishing source
discovered viaSAP Communitycap-tag
Source
Type
blog
Published on
Host
community.sap.com
First seen
History2
  • explains → applies_to on capability:data-modelling (cap); capability:database-connectors (cap); capability:generators (cap)Door scope proposed from the title and summary, so a door page lists the piece only where it holds (docs/concepts/content-on-doors.md).
  • Entered the atlasDiscovered via SAP Community · cap-tag.
For your agent
Ref
content:first-java-cap-application
JSON
/content/first-java-cap-application.json
MCP
Connecting an agent