Skip to content

Commit

Permalink
缺省alias的insertable和updatable修改为true
Browse files Browse the repository at this point in the history
  • Loading branch information
entropy-cloud committed Nov 10, 2023
1 parent 9060ca7 commit 5b36c3a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,16 @@
</c:for>

<c:for var="alias" items="${entityModel.aliases}">
<c:script>if(alias.tagSet?.contains('not-gen')) continue;</c:script>
<c:script>if(alias.tagSet?.contains('not-gen')) continue;
const insertable = !alias.tagSet?.contains('view');
const updatable = !alias.tagSet?.contains('view');
</c:script>
<prop name="${alias.name}" displayName="${alias.displayName}"
i18n-en:displayName="${alias['i18n-en:displayName']}" tagSet="${_.join(alias.tagSet,',')}"
ext:kind="alias" internal="true" ext:control="${alias['ext:control']}"
insertable="false" updatable="false"
insertable="${insertable}" updatable="${updatable}"
mandatory="${alias.mandatory || null}" lazy="true"
published="${alias.tagSet?.contains('pub') ? null :false}">
published="${alias.tagSet?.contains('not-pub') ? false : null}">
<schema type="${alias.javaTypeName}"/>
</prop>
</c:for>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package io.nop.demo.quarkus;

import io.quarkus.test.junit.QuarkusTest;
import org.junit.jupiter.api.Test;

@QuarkusTest
public class TestQuarkusService {
@Test
public void testSave() {

}
}

0 comments on commit 5b36c3a

Please sign in to comment.