QxOrm
1.5.0
C++ Object Relational Mapping library
|
qx::trait::get_primary_key<T>::type : return primary key type of T, by default primary key is long type, use QX_REGISTER_PRIMARY_KEY() macro to register another type (for example QX_REGISTER_PRIMARY_KEY(T, QString)) More...
Go to the source code of this file.
Classes | |
class | qx::trait::get_primary_key< T > |
qx::trait::get_primary_key<T>::type : return primary key type of T, by default primary key is long type, use QX_REGISTER_PRIMARY_KEY() macro to register another type (for example QX_REGISTER_PRIMARY_KEY(T, QString)) More... | |
Namespaces | |
namespace | qx |
Root namespace for all QxOrm library features. | |
namespace | qx::trait |
QxOrm library traits (template metaprogramming) not available in boost::type_traits library. | |
Defines | |
#define | QX_REGISTER_PRIMARY_KEY(daoClass, primaryKey) |
qx::trait::get_primary_key<T>::type : return primary key type of T, by default primary key is long type, use QX_REGISTER_PRIMARY_KEY() macro to register another type (for example QX_REGISTER_PRIMARY_KEY(T, QString))
Definition in file get_primary_key.h.
#define QX_REGISTER_PRIMARY_KEY | ( | daoClass, | |
primaryKey | |||
) |
namespace qx { namespace trait { \ template <> \ class get_primary_key< daoClass > \ { public: typedef primaryKey type; }; \ } }
Definition at line 60 of file get_primary_key.h.