GnuCashew ~ Web Application compatible with GnuCash sql data files.
GCW
Loading...
Searching...
No Matches
User.h
Go to the documentation of this file.
1#line 2 "src/Dbo/Users/User.h"
2
3#ifndef __DBO_USERS_H___
4#define __DBO_USERS_H___
5
6#include <Wt/Dbo/Types.h>
7#include <Wt/WGlobal.h>
8
9#include "../BaseItem.h"
10#include "Definition.h"
11
12namespace GCW {
13 namespace Dbo {
14 namespace Users {
15
16class Item
17: public GCW::Dbo::BaseItem< Item >
18{
19 public:
20
21 Item(){}
22
23 template <class Action>
24 auto persist( Action & a )-> void
25 {
26 Wt::Dbo::field( a, m_employee_guid , Field::employee_guid, 32 ); // text(32) NOT NULL
27 }
28
29 std::string m_employee_guid;
30
31};
32
33 } // endnamespace Users
34 } // endnamespace Dbo
35} // endnamespace GCW
36
37DBO_EXTERN_TEMPLATES( GCW::Dbo::Users::Item )
38
39#endif // __DBO_USERS_H___
40
41
42
auto persist(Action &a) -> void
Definition User.h:24
std::string m_employee_guid
Definition User.h:29
void field(Action &action, V &value, const std::string &name, int size=-1)
const Wt::WFormModel::Field employee_guid
Definition User.cpp:8
Definition App.h:18