QxOrm 1.4.9
C++ Object Relational Mapping library
Loading...
Searching...
No Matches

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.
 

Macros

#define QX_REGISTER_PRIMARY_KEY(daoClass, primaryKey)
 

Detailed Description

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

Author
Lionel Marty

Definition in file get_primary_key.h.

Macro Definition Documentation

◆ QX_REGISTER_PRIMARY_KEY

#define QX_REGISTER_PRIMARY_KEY ( daoClass,
primaryKey )
Value:
namespace qx { namespace trait { \
template <> \
class get_primary_key< daoClass > \
{ public: typedef primaryKey type; }; \
} }
Root namespace for all QxOrm library features.

Definition at line 60 of file get_primary_key.h.