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

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.


Define Documentation

#define QX_REGISTER_PRIMARY_KEY (   daoClass,
  primaryKey 
)
Value:
namespace qx { namespace trait { \
template <> \
class get_primary_key< daoClass > \
{ public: typedef primaryKey type; }; \
} }

Definition at line 60 of file get_primary_key.h.