mirror of
https://github.com/moshowgame/SpringBootCodeGenerator.git
synced 2026-09-09 10:47:34 +08:00
cancel jpa import. make it no need database
This commit is contained in:
@@ -15,7 +15,7 @@ import java.util.Date;
|
||||
/**
|
||||
* ${classInfo.classComment}
|
||||
*
|
||||
* Created by xuxueli on '${.now?string('yyyy-MM-dd HH:mm:ss')}'.
|
||||
* Created by by-health on '${.now?string('yyyy-MM-dd HH:mm:ss')}'.
|
||||
*/
|
||||
@Entity
|
||||
@Data
|
||||
@@ -33,16 +33,4 @@ public class ${classInfo.className} implements Serializable {
|
||||
</#list>
|
||||
</#if>
|
||||
|
||||
<#if classInfo.fieldList?exists && classInfo.fieldList?size gt 0>
|
||||
<#list classInfo.fieldList as fieldItem>
|
||||
public ${fieldItem.fieldClass} get${fieldItem.fieldName?cap_first}() {
|
||||
return ${fieldItem.fieldName};
|
||||
}
|
||||
|
||||
public void set${fieldItem.fieldName?cap_first}(${fieldItem.fieldClass} ${fieldItem.fieldName}) {
|
||||
this.${fieldItem.fieldName} = ${fieldItem.fieldName};
|
||||
}
|
||||
|
||||
</#list>
|
||||
</#if>
|
||||
}
|
||||
@@ -14,7 +14,7 @@ import org.springframework.stereotype.Repository;
|
||||
/**
|
||||
* ${classInfo.classComment}
|
||||
*
|
||||
* Created by xuxueli on '${.now?string('yyyy-MM-dd HH:mm:ss')}'.
|
||||
* Created by by-health on '${.now?string('yyyy-MM-dd HH:mm:ss')}'.
|
||||
*/
|
||||
@Repository
|
||||
public interface ${classInfo.className}Respotory extends JpaRepository<${classInfo.className},Integer> {
|
||||
|
||||
Reference in New Issue
Block a user