aboutsummaryrefslogtreecommitdiff
path: root/common/prepared/test.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'common/prepared/test.hxx')
-rw-r--r--common/prepared/test.hxx26
1 files changed, 26 insertions, 0 deletions
diff --git a/common/prepared/test.hxx b/common/prepared/test.hxx
new file mode 100644
index 0000000..734b138
--- /dev/null
+++ b/common/prepared/test.hxx
@@ -0,0 +1,26 @@
+// file : common/prepared/test.hxx
+// copyright : Copyright (c) 2009-2012 Code Synthesis Tools CC
+// license : GNU GPL v2; see accompanying LICENSE file
+
+#ifndef TEST_HXX
+#define TEST_HXX
+
+#include <string>
+
+#include <odb/core.hxx>
+
+#pragma db object
+struct person
+{
+ person () {}
+ person (const std::string& name, unsigned short age)
+ : name_ (name), age_ (age) {}
+
+ #pragma db id auto
+ unsigned long id_;
+
+ std::string name_;
+ unsigned short age_;
+};
+
+#endif // TEST_HXX