Skip to content

feat: direct CRUD in both stacks#2406

Open
sjvans wants to merge 9 commits intomainfrom
direct-crud
Open

feat: direct CRUD in both stacks#2406
sjvans wants to merge 9 commits intomainfrom
direct-crud

Conversation

@sjvans
Copy link
Contributor

@sjvans sjvans commented Feb 17, 2026

Related to capire/xtravels#38


### Direct CRUD <Beta />

With <Config>cds.fiori.direct_crud:true</Config>, creating or modifying active instances directly is possible without creating drafts.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same config for Node.js and Java?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this one yes, because it affects compile to odata. but there will be an additional config for java, afaik.

@sjvans sjvans marked this pull request as draft February 17, 2026 15:00
renejeglinsky
renejeglinsky previously approved these changes Feb 26, 2026
@renejeglinsky
Copy link
Contributor

Should this PR be marked as "Ready for review"?

@PDT42 PDT42 marked this pull request as ready for review March 25, 2026 14:51
Comment on lines +492 to +494
Directly updating an active entity does **not** bypass draft locks.
If an existing draft locks the entity, any direct update is blocked to prevent losing draft changes upon activation.
See draft lock configuration for [Node.js](../../node.js/fiori#draft-locks) or [Java](../../java/fiori-drafts#draft-lock).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to double check if the Java implementation behaves like that. Don't know by heart.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants