Exemplo n.º 1
0
template <> void register_class(QxClass<Departement> & t)
{
   t.id(& Departement::m_id, "departement_id");
   t.data(& Departement::m_nom, "nom");
t.data(& Departement::m_abbreviation, "abbreviation");
t.data(& Departement::m_adresse, "adresse");



}}
Exemplo n.º 2
0
template <> void register_class(QxClass<Lieu> & t)
{
   t.id(& Lieu::m_id, "lieu_id");
   t.data(& Lieu::m_nom, "nom");
//t.data(& Lieu::m_latitude, "latitude");
//t.data(& Lieu::m_longitude, "longitude");



}}
Exemplo n.º 3
0
template <> void register_class(QxClass<Bar> & t)
{
   IxDataMember * pData = NULL;
   IxSqlRelation * pRelation = NULL;

   t.setSoftDelete(qx::QxSoftDelete("deleted_at"));

   pData = t.data(& Bar::m_sCode, "code");
   pData = t.data(& Bar::m_sValue, "value");

   pRelation = t.relationManyToOne(& Bar::m_pFoo, "foo_id");
}}
Exemplo n.º 4
0
 template<> void register_class(QxClass<Entidades::Documento> &t)
 {
     t.setName("t_documento");
     t.id(&Entidades::Documento::m_codigo, "c_codigo");
     t.data(&Entidades::Documento::m_nome, "c_nome");
     t.data(&Entidades::Documento::m_descricao, "c_descricao");
     t.data(&Entidades::Documento::m_ultimaAlteracao, 
     "c_ultimaalteracao");
     t.data(&Entidades::Documento::m_versao, "c_versao");
     t.data(&Entidades::Documento::m_arquivo, "c_arquivo");
 }
Exemplo n.º 5
0
 template <> void register_class(QxClass<Mooztik::Core::PlayableObject> &t)
 {
     t.data(&Mooztik::Core::PlayableObject::_rating , "rating");
     t.data(&Mooztik::Core::PlayableObject::_favorite , "favorite");
     t.data(&Mooztik::Core::PlayableObject::_comment , "comment");
     t.data(&Mooztik::Core::PlayableObject::_nbPlays , "nb_plays");
     t.data(&Mooztik::Core::PlayableObject::_toPlay , "to_play");
     t.data(&Mooztik::Core::PlayableObject::_timelapse, "timelapse");
 }
Exemplo n.º 6
0
template <> void register_class(QxClass<blog> & t)
{
   t.id(& blog::m_id, "blog_id");

   t.data(& blog::m_text, "blog_text");
   t.data(& blog::m_dt_creation, "date_creation");

   t.relationManyToOne(& blog::m_author, "author_id");
   t.relationOneToMany(& blog::m_commentX, "list_comment", "blog_id");
   t.relationManyToMany(& blog::m_categoryX, "list_category", "category_blog", "blog_id", "category_id");
}}
Exemplo n.º 7
0
void register_class(QxClass<qx::QxPersistable> & t)
{
   t.setPropertyBag("QX_NOT_PERSISTABLE", "1");

   t.setSoftDelete(qx::QxSoftDelete("qx_deleted_at"));

   t.id(& qx::QxPersistable::m_qxId, "qx_id");

   t.data(& qx::QxPersistable::m_qxDateCreation, "qx_date_creation");
   t.data(& qx::QxPersistable::m_qxDateModification, "qx_date_modification");

   QxValidatorX<qx::QxPersistable> * pAllValidator = t.getAllValidator();
   pAllValidator->add_CustomValidator(& qx::QxPersistable::qxIsValidInternal);
}
Exemplo n.º 8
0
template <> void register_class(QxClass<Foo> & t)
{
   IxDataMember * pData = NULL;
   IxSqlRelation * pRelation = NULL;

   pData = t.data(& Foo::m_sName, "name");
   pData = t.data(& Foo::m_sDesc, "desc");
   pData = t.data(& Foo::m_oDateNeutral, "date_neutral");
   pData = t.data(& Foo::m_oTimeNeutral, "time_neutral");
   pData = t.data(& Foo::m_oDateTimeNeutral, "dt_neutral");
   pData = t.data(& Foo::m_optInt, "optional_int");
   pData = t.data(& Foo::m_optString, "optional_string");

   pRelation = t.relationOneToMany(& Foo::m_pBarX, "lstBar", "foo_id");
}}
Exemplo n.º 9
0
template <> void register_class(QxClass<user_search> & t)
{
   t.data(& user_search::first_name, "first_name");
   t.data(& user_search::last_name, "last_name");
   t.data(& user_search::birth_date, "birth_date");
}}
Exemplo n.º 10
0
template <> void register_class(QxClass<drug> & t)
{
  t.id(& drug::id, "id");
  t.data(& drug::name, "name", 1);
  t.data(& drug::description, "desc");
}}
Exemplo n.º 11
0
 template <> void register_class(QxClass<tag> &t)
 {
     t.data(&tag::_value, "value");
 }
Exemplo n.º 12
0
template <> void register_class(QxClass<server_infos_output> & t)
{ t.data(& server_infos_output::current_date_time, "current_date_time"); }