summaryrefslogtreecommitdiff
path: root/odb-examples/schema/custom/employee.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb-examples/schema/custom/employee.hxx')
-rw-r--r--odb-examples/schema/custom/employee.hxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/odb-examples/schema/custom/employee.hxx b/odb-examples/schema/custom/employee.hxx
index 200017d..c916dfc 100644
--- a/odb-examples/schema/custom/employee.hxx
+++ b/odb-examples/schema/custom/employee.hxx
@@ -10,7 +10,7 @@
#include <odb/core.hxx>
-typedef std::vector<std::string> degrees;
+using degrees = std::vector<std::string>;
#pragma db value
class name
@@ -71,9 +71,9 @@ private:
class employee
{
public:
- typedef ::employer employer_type;
+ using employer_type = ::employer;
- employee (unsigned long id,
+ employee (unsigned long long id,
const std::string& first,
const std::string& last,
std::shared_ptr<employer_type> employer)
@@ -83,7 +83,7 @@ public:
// Name.
//
- typedef ::name name_type;
+ using name_type = ::name;
const name_type&
name () const
@@ -93,7 +93,7 @@ public:
// Degrees.
//
- typedef ::degrees degrees_type;
+ using degrees_type = ::degrees;
const degrees_type&
degrees () const
@@ -127,7 +127,7 @@ private:
employee (): name_ ("", "") {}
#pragma db id type("INTEGER") column("ssn")
- unsigned long id_;
+ unsigned long long id_;
#pragma db column("") // No column prefix.
name_type name_;