fix model
This commit is contained in:
@@ -22,7 +22,7 @@ ENTITY_PKG=de.infinimotion.bean
|
||||
ProjectVariable.MAVEN_ARTIFACT_ID=model
|
||||
ProjectVariable.MAVEN_GROUP_ID=de.infinimotion
|
||||
ProjectVariable.PROJECT_NAME=infinimodel
|
||||
ProjectVariable.PROJECT_VERSION=0.0.0
|
||||
ProjectVariable.PROJECT_VERSION=0.0.3
|
||||
ProjectVariable.REST_SERVER_PORT=3000
|
||||
ProjectVariable.REST_API_ROOT=/api/v1
|
||||
ProjectVariable.REST_URL_ROOT=http://localhost:3000
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
* Created on $now.date ( $now.time )
|
||||
* Generated by $generator.name ( version $generator.version )
|
||||
*/
|
||||
package ${target.javaPackageFromFolder(${SRC})};
|
||||
package ${target.javaPackageFromFolder("backend/${SRC}")};
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
|
||||
@@ -30,4 +30,12 @@
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
<distributionManagement>
|
||||
<repository>
|
||||
<id>gitea</id>
|
||||
<name>InfiniMotion Apache Maven Packages</name>
|
||||
<url>https://git.chequeo.de/api/packages/infinimotion/maven</url>
|
||||
</repository>
|
||||
</distributionManagement>
|
||||
|
||||
</project>
|
||||
|
||||
@@ -1 +1 @@
|
||||
@InfiniMotion:registry=https://npm.pkg.github.com
|
||||
@infinimotion:registry=https://git.chequeo.de/api/packages/infinimotion/npm/
|
||||
@@ -1,6 +0,0 @@
|
||||
#set( $env.language = 'TypeScript' )
|
||||
export default interface $entity.name {
|
||||
#foreach( $attribute in $entity.attributes )
|
||||
${attribute.name}: ${attribute.type};
|
||||
#end
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
#set( $env.language = 'TypeScript' )
|
||||
#foreach( $link in $entity.links )
|
||||
import $link.fieldType from "./${link.fieldType}";
|
||||
#end
|
||||
|
||||
export default interface $entity.name {
|
||||
#foreach( $attribute in $entity.attributes )
|
||||
${attribute.name}: ${attribute.type};
|
||||
#end
|
||||
#foreach( $link in $entity.links )
|
||||
${link.fieldName}: ${link.fieldType};
|
||||
#end
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@InfiniMotion/model-frontend",
|
||||
"version": "0.0.0",
|
||||
"name": "@infinimotion/model-frontend",
|
||||
"version": "$fn.get("PROJECT_VERSION","0.0.0")",
|
||||
"description": "InfiniMotion Model for Frontend",
|
||||
"main": "./dist/index.js",
|
||||
"module": "./dist/index.mjs",
|
||||
@@ -22,6 +22,6 @@
|
||||
},
|
||||
"repository": "https://github.com/InfiniMotion/model.git",
|
||||
"publishConfig": {
|
||||
"registry": "https://npm.pkg.github.com"
|
||||
"registry": "https://git.chequeo.de/api/packages/infinimotion/npm/"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#parse("persistence/include/init_var_entity.vm")
|
||||
#parse("persistence/include/java_header.vm")
|
||||
##--------------------------------------------------------------------------------------------------------
|
||||
package ${target.javaPackageFromFolder($SRC)};
|
||||
package ${target.javaPackageFromFolder("persistence/${SRC}")};
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
## #set($jpa.oneToManyFetchType = "EAGER" )
|
||||
## #set($jpa.manyToManyFetchType = "EAGER" )
|
||||
##---------------------------------------------------------------------------------------
|
||||
package ${target.javaPackageFromFolder(${SRC})};
|
||||
package ${target.javaPackageFromFolder("persistence/${SRC}")};
|
||||
## IF ENTITY HAS A COMPOSITE PRIMARY KEY => GENERATE AN 'ID CLASS' FOR THIS PRIMARY KEY
|
||||
#if ( $entity.hasCompositePrimaryKey() )
|
||||
$generator.generate($target.entityName , "${jpaEntityIdClass}.java", $target.folder, "persistence/persistence_entity_id_java.vm" )
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>$fn.get("MAVEN_GROUP_ID","to.be.defined")</groupId>
|
||||
<artifactId>$fn.get("MAVEN_ARTIFACT_ID","to.be.defined")-persistence</artifactId>
|
||||
<version>$fn.get("PROJECT_VERSION","1.0.0")</version>
|
||||
<version>$fn.get("PROJECT_VERSION","0.0.0")</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<properties>
|
||||
@@ -38,4 +38,12 @@
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
<distributionManagement>
|
||||
<repository>
|
||||
<id>gitea</id>
|
||||
<name>InfiniMotion Apache Maven Packages</name>
|
||||
<url>https://git.chequeo.de/api/packages/infinimotion/maven</url>
|
||||
</repository>
|
||||
</distributionManagement>
|
||||
|
||||
</project>
|
||||
|
||||
@@ -20,7 +20,7 @@ package.json ; package.json ; frontend
|
||||
tsconfig.json ; tsconfig.json ; frontend ; frontend/tsconfig_json.vm ; 1
|
||||
tsup.config.ts ; tsup.config.ts ; frontend ; frontend/tsup.config_ts.vm ; 1
|
||||
index.ts ; index.ts ; frontend ; frontend/index_ts.vm ; 1
|
||||
TypeScript Models ; ${BEANNAME}.ts ; frontend ; frontend/Xmodel_ts.vm
|
||||
TypeScript Models ; ${BEANNAME}.ts ; frontend ; frontend/frontend_entity_ts.vm
|
||||
|
||||
### Backend ###
|
||||
Java Backend Models ; ${BEANNAME}.java ; backend/${SRC}/${ROOT_PKG}/backend ; backend/backend_entity_java.vm
|
||||
|
||||
Reference in New Issue
Block a user