QxOrm how to map the class name and table name

170 Views Asked by At

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?

1

There are 1 best solutions below

0
behtgod On BEST ANSWER

I find the answer.
in qx::register_class() method, use :
t.setName("table_a");