On To Many Relationships ?

12 views
Skip to first unread message

willia...@gmail.com

unread,
Nov 21, 2014, 12:42:24 AM11/21/14
to dques...@googlegroups.com
Hello, i my name is William and i just got myself a copy of dquest 2.0 and i really think it is great and pretty light weight compared to other C++ ORMs .
I have just one question being a newbie , are there any future plans to make dquest support one to many relations by say doing something like this.

class Magazine : public DQModel{
DQ_MODEL
public:
DQField<QString> issue_number;

DQList<Article> articles; 

};


class Article :public DQModel{

DQ_MODEL

public:

DQField<QString> section;
DQField<QString> body;
DQForeignKey<Magazine> magazine_ref;

};



I actually wrote something like this thinking that perhaps it would work out of the box but, it did not. Or perhaps there is something that i am not aware of in this library that does support that. If so , i would live some guidance . [Can a QByteArray be stored ] ?
Reply all
Reply to author
Forward
0 new messages