switch(t){
case OneToOne:
case ManyToOne:
ExprForASTElement expr = p.getExprForValue();
if(callWriteCsv4Entity && !p.isOptional()){
identMethodBody(rv);
rv = getMethodCall(rv, "this", "->", csvWriteMethoForEntities, expr.getCodeForElement());
}
if(!consProperty){
if(!p.isOptional()){
rv = identMethodBody(rv);
rv = getMethodCall(rv, aggrListName, ".", "push_back", callToString(expr));
}
else{
identMethodBody(rv).
append("if(").append(p.getCond()).append("){\n");
//TODO: make a method for this group of calls
getMethodCall(identMethodBody(rv).append(" "), relationListName, ".", "push_back", callToString(expr));
getMethodCall(identMethodBody(rv).append(" "), writerName, "->", callToWriteLine, quote(lbPropertyName), "&"+relationListName);
getMethodCall(identMethodBody(rv).append(" "), relationListName, ".", "pop_back");
if(callWriteCsv4Entity){
getMethodCall(identMethodBody(rv).append(" "), "this", "->", csvWriteMethoForEntities, expr.getCodeForElement());
}
identMethodBody(rv).append("}\n");
}
}
break;