#include "../include/precompiled.h"

#include "../include/Foo.h"

#include <QxOrm_Impl.h>

QX_REGISTER_CPP_QX_DLL2(Foo)
QX_PERSISTABLE_CPP(Foo)

namespace qx {
template <> void register_class(QxClass<Foo> & t)
{
   IxDataMember * pData = NULL; Q_UNUSED(pData);
   IxSqlRelation * pRelation = NULL; Q_UNUSED(pRelation);

   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");

#ifdef _QX_ENABLE_BOOST
   pData = t.data(& Foo::m_optInt, "optional_int");
   pData = t.data(& Foo::m_optString, "optional_string");
#endif // _QX_ENABLE_BOOST

   pRelation = t.relationOneToMany(& Foo::m_pBarX, "lstBar", "foo_id");
}}
