File tree Expand file tree Collapse file tree
generator-web/src/main/resources
templates/code-generator/jpa Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -166,7 +166,7 @@ function setAllCookie() {
166166}
167167
168168function setOneCookie ( key ) {
169- setCookie ( key , vm . formData . options [ key ] ) ;
169+ setCookie ( key , vm . formData . options [ key ] , 60 * 60 * 24 * 7 ) ;
170170}
171171
172172/**
Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ import org.springframework.web.bind.annotation.PostMapping;
1313import org.springframework.web.bind.annotation.RestController;
1414import java.util.List;
1515import java.util.Map;
16+ import java.util.Optional;
17+
1618</#if >
1719/**
1820 * @description ${classInfo.classComment}
Original file line number Diff line number Diff line change 1- <#if isWithPackage?exists && isWithPackage==true >package ${packageName} .mapper ;</#if >
1+ <#if isWithPackage?exists && isWithPackage==true >package ${packageName} .repository ;</#if >
22<#if isAutoImport?exists && isAutoImport==true >import ${packageName} .entity.${classInfo.className} ;
33
44<#if classInfo.fieldList?exists && classInfo.fieldList?size gt 0 >
You can’t perform that action at this time.
0 commit comments