From 4b5fde5c42ed096f500a4005fbfba6b198739955 Mon Sep 17 00:00:00 2001 From: Constantin Michael Date: Wed, 23 Mar 2011 15:29:00 +0200 Subject: Add Qt test boilerplate code --- qt/mysql/test.hxx | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 qt/mysql/test.hxx (limited to 'qt/mysql/test.hxx') diff --git a/qt/mysql/test.hxx b/qt/mysql/test.hxx new file mode 100644 index 0000000..bcbabfa --- /dev/null +++ b/qt/mysql/test.hxx @@ -0,0 +1,26 @@ +// file : qt/mysql/test.hxx +// author : Constantin Michael +// copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC +// license : GNU GPL v2; see accompanying LICENSE file + +#ifndef TEST_HXX +#define TEST_HXX + +#include + +#pragma db object +struct person +{ + bool + operator== (const person& x) const + { + return id == x.id && name == x.name; + } + + #pragma db id auto + unsigned long id; + + QString name; +}; + +#endif // TEST_HXX -- cgit v1.1