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

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

#include <QxOrm_Impl.h>

QX_REGISTER_CPP_QX_DLL2(Bar)
QX_PERSISTABLE_CPP(Bar)

namespace qx {
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");
}}
