         self.nodeStore.cache.name = "nodeStore"  // TODO: automate
         
         var relationshipStoreURL = self.url.URLByAppendingPathComponent(cRelationshipStoreFileName)
-        self.relationshipStore = SOCacheDataStore(URL:relationshipStoreURL)
-        self.relationshipStore.setupStore(SORelationship())
+        self.relationshipStore = ObjectStore<Relationship>(url:relationshipStoreURL)
+        //self.relationshipStore.setupStore(SORelationship())
         self.nodeStore.cache.name = "relationshipStore"
         
         var propertyStoreURL = self.url.URLByAppendingPathComponent(cPropertyStoreFileName)
-        self.propertyStore = SOCacheDataStore(URL: propertyStoreURL)
-        self.propertyStore.setupStore(SOProperty())
+        self.propertyStore = ObjectStore<Property>(url: propertyStoreURL)
+        //self.propertyStore.setupStore(SOProperty())
         self.propertyStore.cache.name = "propertyStore"
         
         var stringStoreURL = self.url.URLByAppendingPathComponent(cStringStoreFileName)

//  Created by Stephan Zehrer on 07.06.14.
//  Copyright (c) 2014 Stephan Zehrer. All rights reserved.
//

import Foundation

let cNodeStoreFileName         = "nodestore.db";
let cRelationshipStoreFileName = "relation.db";

    
    // #pragma mark - CRUD Relationship
    
    func updateRelationship(aRelationship: Relationship) {
        self.relationshipStore.updateObject(aRelationship)
    }
    
    func deleteProperty(aRelationship: Relationship) {
        self.relationshipStore.deleteObject(aRelationship)
        
        aRelationship.context = nil;
