     (mapping [:CreationTime] :CreationTime)
     (mapping [:Validity] :Validity)
     (mapping [:Scheme] :Scheme))
-  (add-relation :mappingPolicy_fk_ShareId))
+  (add-association :mappingPolicy_fk_ShareId))
 
 (foreach [:accesspolicy]
   (add-instance :AcessPolicy
     (mapping-pk [:Id] :Id))
-  (add-relation :accessPolicy_fk_EndpointId))
+  (add-association :accessPolicy_fk_EndpointId))

    (mapping [:IssuerCA] :IssuerCA)
    (mapping [:DowntimeAnnounce] :DowntimeAnnounce)
    (mapping [:DowntimeInfo] :DowntimeInfo))
  (add-relation :endpoint_fk_ServiceId))


(foreach [:location]

    (mapping [:CreationTime] :CreationTime)
    (mapping [:Validity] :Validity)
    (mapping [:Description] :Description))
  (add-association :share_fk_ServiceId))
;TODO ASSOC SHARE: ENDPOINT (table "shareendpoint" :shareendpoint (column "shareId" :shareId :pk :notnull) (column "endpointId" :endpointId :pk :notnull))

(foreach [:admindomain]
  (add-instance :AdminDomain (mapping-pk [:Id] :ID)
    (mapping [:domain :Description] :Description))
  (add-association :adminDomain_fk_AdminDomainId))
;TODO ASSOC ADMINDOMAIN: ADMINDOMAIN   (column "adminDomainId" :adminDomainId)


