Add a comment to the model header file
This commit is contained in:
parent
f9cc77daa0
commit
fdb69781f2
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue