Skip to content

Commit

Permalink
Update migration.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mofterdinger committed Sep 4, 2024
1 parent 1ca2dcb commit a4fb8a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions java/migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -1262,9 +1262,9 @@ You can also use OData V2 and V4 in parallel. However, by default the Maven buil
This command picks up all service definitions in the Java project base directory (`srv` by default) and generates EDMX for OData V2. It also localizes the generated EDMX files with all available translations. For more information on the previous command, call `cds help compile` on the command line. If your service definitions are located in a different directory, adopt the previous command. If your service definitions are contained in multiple directories, add the previous command for each directory separately. Make sure to use at least `cds-dk 3.2.0` for this step.
If you are using feature toggles in your CAP Java project, you have to specify the features root folder to the command line:

```xml
<command>compile ${project.basedir} ${session.executionRootDirectory}/fts/* -s all -l all -2 edmx-v2 -o ${project.basedir}/src/main/resources/edmx/v2</command>
```
```xml
<command>compile ${project.basedir} ${session.executionRootDirectory}/fts/* -s all -l all -2 edmx-v2 -o ${project.basedir}/src/main/resources/edmx/v2</command>
```
This command includes the folder `/fts` and all sub-folders into the CDS model.

4. Make sure that the dependencies to the OData V2 and V4 adapters are present in your *pom.xml* file:
Expand Down

0 comments on commit a4fb8a5

Please sign in to comment.