00001
00002
00003
00004
00005 #ifndef _ENTITY_TYPES_HPP_
00006 #define _ENTITY_TYPES_HPP_
00007
00008 #include <string>
00009 #include <map>
00010
00011 typedef struct
00012 {
00013 std::string adaptorName;
00014 bool multivalued;
00015 std::string type;
00016 } ENTITY_ATTR_MAP_TYPE;
00017
00018 typedef struct
00019 {
00020 std::string primaryKey;
00021 std::string secondaryKey;
00022 bool reverseLookup;
00023 bool directLookup;
00024 std::string entityLdapName;
00025 } ENTITY_RELATIONSHIP_TYPE;
00026
00027 typedef struct
00028 {
00029 std::string adaptorName;
00030 std::map<std::string, ENTITY_ATTR_MAP_TYPE> attrs;
00031 std::multimap<std::string, ENTITY_RELATIONSHIP_TYPE> relatedEntities;
00032 } ENTITY_ATTR_TYPE;
00033
00034 #endif
00035