Revision 19cf5548
Von Christian Ehringfeld vor mehr als 10 Jahren hinzugefügt
| samples/example/main.cpp | ||
|---|---|---|
|
* or you can use this syntax:
|
||
|
*/
|
||
|
qDebug() << "-----------------------------";
|
||
|
QSharedPointer<Person> foundMainTeacher = e->findById<Person>
|
||
|
(1);
|
||
|
QSharedPointer<Person> foundMainTeacher = e->findById<Person>(1);
|
||
|
qDebug() << "FoundMainTeacher:" << foundMainTeacher->toString();
|
||
|
qDebug() << "FoundMainTeacherGroupSize:" <<
|
||
|
foundMainTeacher->getMaintainedGroups().size();
|
||
| src/queryinterpreter.cpp | ||
|---|---|---|
|
}
|
||
|
|
||
|
QString QueryInterpreter::buildHaving(Query &q,
|
||
|
const QList<Expression> &conditions)
|
||
|
const {
|
||
|
const QList<Expression> &conditions) const {
|
||
|
QString having = this->buildCondition(q, conditions);
|
||
|
return having.isEmpty() ? "" : ("HAVING " + having);
|
||
|
}
|
||
| ... | ... | |
|
}
|
||
|
|
||
|
QString QueryInterpreter::buildCondition(Query &q,
|
||
|
const QList<Expression> &conditions)
|
||
|
const {
|
||
|
const QList<Expression> &conditions) const {
|
||
|
if (conditions.isEmpty()) {
|
||
|
return "";
|
||
|
}
|
||
Auch abrufbar als: Unified diff
last commit for today