代码拉取完成,页面将自动刷新
<%@ CodeTemplate Inherits="CodeTemplate" Language="C#" TargetLanguage="Java" Description="NetTiers main template." Debug="True" ResponseEncoding="UTF-8"%>
<%@ Assembly Name="SchemaExplorer"%>
<%@ Import Namespace="SchemaExplorer"%>
<%@ Property Name="Table" Type="TableSchema" DeepLoad="True" Optional="False" Category="01. Getting Started - Required" Description=""%>
<!-- #include file="Common/Common.cst" -->
<%
string DtoPascal = GetPascal(Table.Name) +"Dto";
string DtoHump = GetHump(Table.Name) +"Dto";
%>
package <%= ModelNamespacesStr %>;
import java.io.Serializable;
import java.util.Date;
/**
* @author :框架自动生成,赵韩佳
* @date :<%= DateTime.Now.ToLongDateString() %>
* @description : <%= Table.Description %>Dto
*/
public class <%= GetPascal(Table.Name) %>Dto implements Serializable {
<%foreach(ColumnSchema col in Table.Columns){
if(IsGenerateColumn(col.Name)){ continue; }
if(col.Name == delfield){ continue; }
%>
/**
* <%= col.ExtendedProperties["CS_Description"].Value %>
*/
private <%= GetDataType(col.DataType) %> <%= GetHump(col.Name) %>;
<% } %>
<%foreach(ColumnSchema col in Table.Columns){
if(IsGenerateColumn(col.Name)){ continue; }
if(col.Name == delfield){ continue; }
%>
/**
* 返回 <%= col.ExtendedProperties["CS_Description"].Value %>
* @return <%= GetHump(col.Name) %>
*/
public <%= GetDataType(col.DataType) %> get<%= GetPascal(GetColumn(col.Name)) %>() {
return <%= GetHump(col.Name)%>;
}
/**
* 设置 <%= col.ExtendedProperties["CS_Description"].Value %>
* @param <%= GetHump(col.Name) %>
*/
public void set<%= GetPascal(GetColumn(col.Name)) %>(<%= GetDataType(col.DataType) %> <%= GetHump(col.Name)%>) {
this.<%= GetHump(col.Name)%> = <%= GetHump(col.Name)%>;
}
<% } %>
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。