Is there a way to map table name and class name?
For example,
I have a class is named ClassA,and I have a table is named TableA.
I want ClassA is mapping with TableA instead of create a new class that name TableA.
Is there a way to map table name and class name?
t.setName("TableA");
qxorm wrote:Hello and welcome to this forumIs there a way to map table name and class name?
Yes there is a way, in your qx::register_class<T>() method, just use :
- Code: Select all
t.setName("TableA");
For this kind of questions, I would recommend to test QxEntityEditor application : this application includes an entity designer, and you are able to modify entity parameters and then see how C++ should be with the C++ preview tab.
Users browsing this forum: No registered users and 2 guests