fix frontend model template not nullable

This commit is contained in:
2025-11-14 01:28:42 +01:00
parent 284bc3b21a
commit a5b40b0fb5
2 changed files with 3 additions and 3 deletions

View File

@@ -22,7 +22,7 @@ ENTITY_PKG=de.infinimotion.model.bean
ProjectVariable.MAVEN_ARTIFACT_ID=model ProjectVariable.MAVEN_ARTIFACT_ID=model
ProjectVariable.MAVEN_GROUP_ID=de.infinimotion ProjectVariable.MAVEN_GROUP_ID=de.infinimotion
ProjectVariable.PROJECT_NAME=infinimodel ProjectVariable.PROJECT_NAME=infinimodel
ProjectVariable.PROJECT_VERSION=0.0.101 ProjectVariable.PROJECT_VERSION=0.0.102
ProjectVariable.REST_SERVER_PORT=3000 ProjectVariable.REST_SERVER_PORT=3000
ProjectVariable.REST_API_ROOT=/api/v1 ProjectVariable.REST_API_ROOT=/api/v1
ProjectVariable.REST_URL_ROOT=http://localhost:3000 ProjectVariable.REST_URL_ROOT=http://localhost:3000

View File

@@ -10,9 +10,9 @@ import $link.fieldType.replace("[]", "") from "./${link.fieldType.replace("[]",
export default interface $entity.name { export default interface $entity.name {
#foreach( $attribute in $entity.attributes ) #foreach( $attribute in $entity.attributes )
${attribute.name}: ${attribute.type}; ${attribute.name}: ${attribute.type}#if ( !($attribute.isNotNull()) ) | null#end;
#end #end
#foreach( $link in $entity.links ) #foreach( $link in $entity.links )
${link.fieldName}: ${link.fieldType}; ${link.fieldName}: ${link.fieldType}#if ( $link.isOptionalTrue() ) | null#end;
#end #end
} }