QxOrm is a C++ library designed to provide Object Relational Mapping (ORM) feature to C++ users.
Questions tagged [qxorm]
8 questions
1
vote
1 answer
How to define a table in QxORM with multiple primary keys, one of them is a "many to one" relation to an other table
What is the right way to define a table (“secondtable”) with multiple primary key, one of them (“|first_table_key”) is a “many to one” relation to another table (“firsttable”)?
This doesen't work because of multiple definitions of…

maxw
- 123
- 1
- 8
0
votes
1 answer
Compile and Execute QxORM qxBlog example
I'm actually in a project in which I use Qt and I need to use an ORM. I found QxORM. In the process of getting started with this ORM, I need to be able to compile and execute the qxBlog example provided with it. I have thoroughly followed
the…

Joel
- 167
- 1
- 1
- 11
0
votes
1 answer
QxOrm how to map the class name and table name
Use QxOrm, is there a way to name the table name?
For example,I have a class named ClassA.
And I want to ClassA is corresponding a table named table_a in the database.
How to do?

behtgod
- 251
- 3
- 15
0
votes
1 answer
Manually set ID (PK) using QxOrm
I have created a new object, set the values (including the ID/PK) but when I use qx::dao::insert, it ignores the ID I have specified.
How can I specify the PK value of the row I want to persist?

Diogo Melo
- 1,735
- 3
- 20
- 29
0
votes
2 answers
Can QxOrm persist pointers to abstract classes?
I am trying to figure out how to use QxOrm to persist a large, complex class structure. I've made some progress, but am stuck on what to do with pointers to abstract classes.
Here's a simple example, where Table (a concrete class) has a pointer to…

Chris
- 4,734
- 2
- 19
- 26
0
votes
1 answer
QxOrm giving "could not be resolved" error
I am using the Eclipse IDE and Qt plugin.
I am using QxOrm in my Qt project. I have downloaded the library files and compiled them and when I start using the macros it's giving lots and lots of errors like:
C_str could not be resolved
macro could…

ken
- 816
- 1
- 9
- 25
0
votes
2 answers
Set a version to a SQLite database file
I have a C++ application that stores data in a database (SQLite) through QxOrm.
It is clear that in the next versions, columns are gonna be added/removed/renamed, so I would like to set a version number to each database created, so that when someone…

talnicolas
- 13,885
- 7
- 36
- 56
-2
votes
3 answers
C++ class with template methods having many instances consuming huge amount of memory on compilation
I have a class with template methods for which I instantiate many other classes, like more than a hundred. The problem is that the compilation of the template class consumes a huge amount of memory, like 3GB. I assume this occurs because of many…

vanderdill
- 162
- 2
- 14