forked from devonfw/cobigen
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
12 changed files
with
61 additions
and
185 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
83 changes: 0 additions & 83 deletions
83
...n/resources/AdaptTemplatesTest/template-sets/adapted/crud-java-server-app-complex/pom.xml
This file was deleted.
Oops, something went wrong.
40 changes: 0 additions & 40 deletions
40
...st/template-sets/adapted/crud-java-server-app-complex/src/main/resources/template-set.xml
This file was deleted.
Oops, something went wrong.
Empty file.
Empty file.
40 changes: 0 additions & 40 deletions
40
...platesTest/template-sets/adapted/crud-java-server-app/src/main/resources/template-set.xml
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
56 changes: 56 additions & 0 deletions
56
...st/template-sets/adapted/crud-openapi-java-server-app/src/main/resources/template-set.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<tns:templateSetConfiguration version="6.0" | ||
xmlns:tns="http://capgemini.com/devonfw/cobigen/TemplateSetConfiguration" | ||
xmlns:cc="http://capgemini.com/devonfw/cobigen/ContextConfiguration" | ||
xmlns:tc="http://capgemini.com/devonfw/cobigen/TemplatesConfiguration" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://capgemini.com/devonfw/cobigen/TemplateSetConfiguration templateSetConfiguration.xsd | ||
"> | ||
<cc:contextConfiguration version="3.0"> | ||
<cc:trigger id="crud_openapi_java_server_app" type="openapi"> | ||
<cc:containerMatcher type="element" value="openAPIFile" /> | ||
<cc:matcher type="element" value="EntityDef"> | ||
<cc:variableAssignment type="extension" key="rootPackage" | ||
value="x-rootpackage" /> | ||
<cc:variableAssignment type="property" key="component" | ||
value="componentName" /> | ||
<cc:variableAssignment type="property" key="entityName" value="name" /> | ||
</cc:matcher> | ||
</cc:trigger> | ||
<cc:tags> | ||
<cc:tag name="Java"></cc:tag> | ||
<cc:tag name="OpenAPI"></cc:tag> | ||
<cc:tag name="CRUD"></cc:tag> | ||
<cc:tag name="Server"></cc:tag> | ||
<cc:tag name="App"></cc:tag> | ||
</cc:tags> | ||
<cc:links> | ||
<cc:link | ||
url="https://github.com/devonfw/cobigen/wiki/howto-devonfw-ide-CobiGen-PoC-E2E"></cc:link> | ||
</cc:links> | ||
</cc:contextConfiguration> | ||
<tc:templatesConfiguration version="5.0"> | ||
<tc:templates> | ||
<tc:templateExtension ref="${variables.entityName}Eto.java" | ||
mergeStrategy="javamerge" /> | ||
|
||
</tc:templates> | ||
|
||
<tc:templateScans> | ||
<tc:templateScan templatePath="templates" destinationPath="src/main" /> | ||
</tc:templateScans> | ||
|
||
<tc:increments> | ||
<tc:increment name="server" description="CRUD devon4j Server" | ||
explanation="Creates (backends) server CRUD service for java application."> | ||
<tc:incrementRef ref="rest_service_impl" /> | ||
</tc:increment> | ||
|
||
<tc:increment name="rest_service_impl" description="CRUD REST services"> | ||
<tc:templateRef ref="${variables.entityName}Eto.java"/> | ||
</tc:increment> | ||
|
||
</tc:increments> | ||
</tc:templatesConfiguration> | ||
|
||
</tns:templateSetConfiguration> |
1 change: 1 addition & 0 deletions
1
...bles.rootPackage}/${variables.component}/logic/api/to/${variables.entityName}Eto.java.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
package test; |