fix frontend model template not nullable
This commit is contained in:
@@ -22,7 +22,7 @@ ENTITY_PKG=de.infinimotion.model.bean
|
||||
ProjectVariable.MAVEN_ARTIFACT_ID=model
|
||||
ProjectVariable.MAVEN_GROUP_ID=de.infinimotion
|
||||
ProjectVariable.PROJECT_NAME=infinimodel
|
||||
ProjectVariable.PROJECT_VERSION=0.0.101
|
||||
ProjectVariable.PROJECT_VERSION=0.0.102
|
||||
ProjectVariable.REST_SERVER_PORT=3000
|
||||
ProjectVariable.REST_API_ROOT=/api/v1
|
||||
ProjectVariable.REST_URL_ROOT=http://localhost:3000
|
||||
|
||||
@@ -10,9 +10,9 @@ import $link.fieldType.replace("[]", "") from "./${link.fieldType.replace("[]",
|
||||
|
||||
export default interface $entity.name {
|
||||
#foreach( $attribute in $entity.attributes )
|
||||
${attribute.name}: ${attribute.type};
|
||||
${attribute.name}: ${attribute.type}#if ( !($attribute.isNotNull()) ) | null#end;
|
||||
#end
|
||||
#foreach( $link in $entity.links )
|
||||
${link.fieldName}: ${link.fieldType};
|
||||
${link.fieldName}: ${link.fieldType}#if ( $link.isOptionalTrue() ) | null#end;
|
||||
#end
|
||||
}
|
||||
Reference in New Issue
Block a user