Database error handling.
This commit is contained in:
@@ -3,14 +3,14 @@
|
||||
Person::Person()
|
||||
{
|
||||
}
|
||||
int Person::getId() const
|
||||
int Person::id() const
|
||||
{
|
||||
return id;
|
||||
return m_id;
|
||||
}
|
||||
|
||||
void Person::setId(int value)
|
||||
{
|
||||
id = value;
|
||||
m_id = value;
|
||||
}
|
||||
QString Person::getFirstName() const
|
||||
{
|
||||
|
||||
@@ -16,7 +16,7 @@ class Person : public QObject
|
||||
public:
|
||||
Person();
|
||||
|
||||
int getId() const;
|
||||
int id() const;
|
||||
void setId(int value);
|
||||
|
||||
QString getFirstName() const;
|
||||
@@ -28,7 +28,7 @@ public:
|
||||
private:
|
||||
friend class odb::access;
|
||||
#pragma db id auto
|
||||
int id;
|
||||
int m_id;
|
||||
QString firstName;
|
||||
QString lastName;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user