             db.feeds = Set<String>(feeds.map { $0.0.rawValue + ":" + $0.1.pattern })
             db.pages = Set<Int>(pages)
             db.style = style.rawValue
-            db.media = media
+			db.media = "\(id):\(media)"
 
             return db
         }

}

func ==(lhs: Advertisement, rhs: Advertisement) -> Bool {
	return lhs.administration == rhs.administration && lhs.media == rhs.media
}


    }

	var hashValue: Int {
		return administration.hashValue ^ media.hashValue ^ id.hashValue
	}

	private static var ads = Set<Advertisement>()
