- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- Search for |

# entity_types.hpp

Go to the documentation of this file.

    00001 //  Copyright (c) 2009 STFC
    00002 //
    00003 //  Distributed under the Boost Software License, Version 1.0. (See accompanying
    00004 //  file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
    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