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: playbooks/cobigen-cli/index.asciidoc
+33-1Lines changed: 33 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,11 +10,43 @@ More information about CobiGen on https://devonfw.com/website/pages/docs/master-
10
10
To use the cobigen cli you first have to install the devonfw ide. You will find more information about devonfw on https://devonfw.com/website/pages/welcome/welcome.html.
11
11
[step]
12
12
--
13
-
installDevonfwIde([java,mvn])
13
+
installDevonfwIde(["java","mvn"])
14
14
--
15
15
16
16
Now, you have to download cobigen
17
17
[step]
18
18
--
19
19
installCobiGen()
20
20
--
21
+
22
+
====
23
+
CobiGen is integrated via plugin in the VS Code IDE. We will use it to generate code from one single java class based on existing templates.
The CobiGen code generator will generate some java classes for you. These contain code for basic CRUD operations, REST service handling and data access.
29
+
30
+
For example, the following files are generated by CobiGen when using the specified templates:
31
+
32
+
(1) CRUD logic: Generates the logic layer and implementations for some use cases.
You can use the plugin simply via the context menu. Make a right click on the java file (in the explorer on the left or in the editor itself). The context menu will open and you can start the CobiGen Plugin by clicking on 'CobiGen'.
9
+
10
+
A terminal will open on the bottom of the IDE and CobiGen CLI will start.
11
+
12
+
You can choose the templates CobiGen should use by entering the numbers in the terminal of the IDE.
0 commit comments