Add a comment to the model header file

This commit is contained in:
antao 2018-11-08 11:20:07 +08:00 committed by an-tao
parent f9cc77daa0
commit fdb69781f2
1 changed files with 10 additions and 1 deletions

View File

@ -63,7 +63,16 @@ auto cols=@@.get<std::vector<ColumnInfo>>("columns");
}
%>
const static std::vector<std::string> primaryKeyName;
typedef std::tuple<<%c++$$<<typelist;%>> PrimaryKeyType;
typedef std::tuple<<%c++$$<<typelist;%>> PrimaryKeyType;//<%c++
auto pkName=@@.get<std::vector<std::string>>("primaryKeyName");
for(int i=0;i<pkName.size();i++)
{
$$<<pkName[i];
if(i<(pkName.size()-1))
$$<<",";
}
%>
PrimaryKeyType getPrimaryKey() const;
<%c++}%>
{{className}}(const Row &r) noexcept;