You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: advanced/fiori.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -463,10 +463,10 @@ SELECT.from(Books.drafts) //returns all drafts of the Books entity
463
463
464
464
In addition to adding [restrictions on services, entities, and actions/functions](/guides/security/authorization#restrictions), there are use cases where you only want to hide certain parts of the UI for specific users. This is possible by using the respective UI annotations like `@UI.Hidden` or `@UI.CreateHidden` in conjunction with `$edmJson` pointing to a singleton.
465
465
466
-
First, you define the [singleton](../advanced/odata#singletons) in your service and annotate it with [`@cds.persistency.skip`](../guides/databases#cds-persistence-skip) so that no database artefact is created:
466
+
First, you define the [singleton](../advanced/odata#singletons) in your service and annotate it with [`@cds.persistence.skip`](../guides/databases#cds-persistence-skip) so that no database artefact is created:
::: tip Doc comments are automatically enabled in CAP Java.
324
324
In CAP Java, doc comments are automatically enabled by the [CDS Maven Plugin](../java/developing-applications/building#cds-maven-plugin).
325
-
In generated interfaces they are [converted to corresponding Javadoc comments](../java/assets/cds-maven-plugin-site/generate-mojo.html#documentation).
325
+
In generated interfaces they are [converted to corresponding Javadoc comments](../java/assets/cds-maven-plugin-site/generate-mojo.html#documentation){target="_blank"}.
326
326
:::
327
327
328
328
When generating output for deployment to SAP HANA, the first paragraph of a doc comment is translated
The generation mode is configured by the property [`<methodStyle>`](./assets/cds-maven-plugin-site/generate-mojo.html#methodstyle) of the goal `cds:generate` provided by the CDS Maven Plugin. The selected `<methodStyle>` affects all entities and event contexts in your services. The default value is `BEAN`, which represents JavaBeans-style interfaces.
500
+
The generation mode is configured by the property [`<methodStyle>`](./assets/cds-maven-plugin-site/generate-mojo.html#methodstyle){target="_blank"} of the goal `cds:generate` provided by the CDS Maven Plugin. The selected `<methodStyle>` affects all entities and event contexts in your services. The default value is `BEAN`, which represents JavaBeans-style interfaces.
501
501
502
502
Once, when starting a project, decide on the style of the interfaces that is best for your team and project. We recommend the default JavaBeans style.
Copy file name to clipboardExpand all lines: node.js/fiori.md
+28-25Lines changed: 28 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,8 +77,35 @@ You can set the property to one of the following:
77
77
- number of minutes like `'10min'`
78
78
- number of milliseconds like `1000`
79
79
80
-
### Bypassing the SAP Fiori Draft Flow
80
+
:::tip Delete released draft locks
81
+
If the `draft_lock_timeout` has been reached, every user can delete other users' drafts to create an own draft. There can't be two drafts at the same time on the same entity.
82
+
:::
83
+
84
+
### Garbage Collection of Stale Drafts
85
+
86
+
Inactive drafts are deleted automatically after the default timeout of 30 days. You can configure or deactivate this timeout by the following configuration:
87
+
88
+
```json
89
+
{
90
+
"cds": {
91
+
"fiori": {
92
+
"draft_deletion_timeout": "28d"
93
+
}
94
+
}
95
+
}
96
+
```
97
+
98
+
You can set the property to one of the following:
99
+
-`false` in order to deactivate the timeout
100
+
- number of days like `'30d'`
101
+
- number of hours like `'72h'`
102
+
- number of milliseconds like `1000`
103
+
104
+
::: info Technical background
105
+
It can occur that inactive drafts are still in the database after the configured timeout. The deletion is implemented as a side effect of creating new drafts and there's no periodic job that does the garbage collection.
106
+
:::
81
107
108
+
### Bypassing the SAP Fiori Draft Flow
82
109
Creating or modifying active instances directly is possible without creating drafts. This comes in handy when technical services without a UI interact with each other.
83
110
84
111
To enable this feature, set this feature flag in your configuration:
@@ -122,30 +149,6 @@ Note that this feature creates additional entry points to your application. Cust
122
149
payloads rather than the complete business object.
123
150
:::
124
151
125
-
### Garbage Collection of Stale Drafts
126
-
127
-
Inactive drafts are deleted automatically after the default timeout of 30 days. You can configure or deactivate this timeout by the following configuration:
128
-
129
-
```json
130
-
{
131
-
"cds": {
132
-
"fiori": {
133
-
"draft_deletion_timeout": "28d"
134
-
}
135
-
}
136
-
}
137
-
```
138
-
139
-
You can set the property to one of the following:
140
-
-`false` in order to deactivate the timeout
141
-
- number of days like `'30d'`
142
-
- number of hours like `'72h'`
143
-
- number of milliseconds like `1000`
144
-
145
-
::: info Technical background
146
-
It can occur that inactive drafts are still in the database after the configured timeout. The deletion is implemented as a side effect of creating new drafts and there's no periodic job that does the garbage collection.
147
-
:::
148
-
149
152
### Differences to Previous Version
150
153
151
154
- Draft-enabled entities have corresponding CSN entities for drafts:
0 commit comments