00001 /* 00002 group_sites.hpp 00003 base classes: 00004 read_write_base 00005 Group Sites Business Object 00006 */ 00007 00008 #ifndef PD_GROUP_SITES 00009 #define PD_GROUP_SITES 00010 #include "read_write_base.hpp" 00011 00012 /* 00013 00014 group_sites Business Object 00015 CREATE TABLE group_sites ( 00016 id bigint not null primary key auto_increment, 00017 group_id bigint NOT NULL, -- group 00018 site_id bigint NOT NULL -- site 00019 ); 00020 00021 00022 */ 00023 00024 class group_sites: public read_write_base 00025 { 00026 public: 00027 identifier id; 00028 long long group_id; 00029 long long site_id; 00030 00031 00032 // Constructor 00033 group_sites() 00034 :read_write_base() 00035 ,id(0LL),group_id(0LL),site_id(0LL) 00036 { 00037 data_name("group_sites"); 00038 // ALWAYS make the key be first, so we can skip it in insert logic 00039 addDXMap( new llongXfer("id", &id) ); 00040 addDXMap( new llongXfer("group_id", &group_id) ); 00041 addDXMap( new llongXfer("site_id", &site_id) ); 00042 } 00043 virtual ~group_sites(){;} 00044 }; 00045 #endif 00046 00047 00048
1.5.5