blob: ac7a66b20a439b3c8d3ff5b5df5f4628820bfd70 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// file : hello/person.hxx
// copyright : not copyrighted - public domain
#ifndef PERSON_HXX
#define PERSON_HXX
#include <string>
#include <odb/core.hxx>
#pragma db object
class person
{
public:
#pragma db id auto
unsigned long id;
unsigned int num;
#ifdef ODB_DATABASE_MSSQL
#pragma db type("VARCHAR(max)")
#else
#pragma db type("CLOB")
#endif
std::string str;
};
#endif // PERSON_HXX
|