Build system changed to Cmake, ORM changed to QxORM, Qt6 compatibility.

This commit is contained in:
2023-04-28 22:25:29 +02:00
parent 30e6180c82
commit d699ce79f7
481 changed files with 2310 additions and 130206 deletions
+19 -4
View File
@@ -1,14 +1,29 @@
#include "user.h"
User::User()
{
QX_REGISTER_CPP_CORE(User)
namespace qx {
template<> void register_class(QxClass<User>& t) {
t.setName("User");
t.id(&User::m_id, "id");
t.data(&User::m_login, "login");
t.data(&User::m_password, "password");
t.data(&User::m_name, "name");
t.data(&User::m_lastModDate, "lastModDate");
t.data(&User::m_createDate, "createDate");
t.data(&User::m_active, "active");
t.data(&User::m_isAdmin, "isAdmin");
t.relationManyToMany(&User::m_listRoles, "object_id_fk", "User_listRoles", "object_id", "value");
}
}
int User::id() const
long User::id() const
{
return m_id;
}
void User::setId(int id)
void User::setId(long id)
{
m_id = id;
}