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: cobigen/index.asciidoc
+17-12Lines changed: 17 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,27 +1,23 @@
1
-
= CobiGen Cli
1
+
= Tutorial for Java Backend Generation with CobiGen
2
2
====
3
-
CobiGen is a generic incremental code generator. It allows you build Java CRUD application based on the devonfw architecture including all software layers. You can generate all necessary classes and services (DAOs, Transfer Objects, simple CRUD use cases with REST services) of the application from one single entity class.
3
+
CobiGen is a generic incremental code generator. It allows you to build Java CRUD application based on the devonfw architecture including all software layers. You can generate all necessary classes and services (DAOs, Transfer Objects, simple CRUD use cases with REST services) of the application from one single entity class.
4
4
5
-
CobiGen provides Maven and Eclipse integrations. But there is also a command line interface (CLI) which enables the generation of code using only few commands. In this scenario, you will learn how to install and use the cobigen cli inside a java project.
5
+
CobiGen provides Maven and Eclipse integrations. But there is also a command line interface (CLI) which enables the generation of code using only few commands.
6
6
7
7
More information about CobiGen on https://devonfw.com/website/pages/docs/master-cobigen.asciidoc.html
8
8
====
9
9
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
10
[step]
12
11
--
13
-
installDevonfwIde(["java","mvn"])
12
+
restoreDevonfwIde(["java","mvn"])
14
13
--
15
14
16
-
Now, you have to download cobigen
15
+
For this tutorial an installation of the devonfw IDE is required, which was already set up for you.
16
+
To begin you need to install CobiGen and create a Java Project.
17
17
[step]
18
+
== Install CobiGen and create Java Project
18
19
--
19
20
installCobiGen()
20
-
--
21
-
22
-
Now you are ready to create your first project
23
-
[step]
24
-
--
25
21
createDevon4jProject("cobigenexample")
26
22
--
27
23
@@ -31,7 +27,7 @@ Create the entity class which will be passed to the cobigen cli generator later
The CobiGen code generator will generate some java classes for you. These contain code for basic CRUD operations, REST service handling and data access.
@@ -68,3 +65,11 @@ For example, the following files are generated by CobiGen when using the specifi
68
65
(8) CRUD SpringData Repository: Generates the entity repository (that contains the CRUD operations) in the data access layer.
0 commit comments