#ifndef PERSON_H #define PERSON_H #include #include #include #pragma db object class Person : public QObject { Q_OBJECT public: Person(); int getId() const; void setId(int value); QString getFirstName() const; void setFirstName(const QString &value); QString getLastName() const; void setLastName(const QString &value); private: friend class odb::access; #pragma db id auto int id; QString firstName; QString lastName; }; #endif // PERSON_H