mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-11 20:00:30 +01:00
Is it possible to have multiple ImportableUniqueObjects for the same NSManageObject? #403
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tkirby on GitHub (Feb 13, 2023).
I have two web fetches that update the same object at different times.
Hotel <- HotelJSON
Hotel <- HotelPriceJSON
Both JSONs use HotelId as the unique key. Is it possible to make those both unique objects? Prrotocol can only be declared on Hotel once. Is there a workaround?
@JohnEstropia commented on GitHub (Feb 14, 2023):
Sure, I do something like this a lot in my projects:
then in your import code:
Then in your
ImportableUniqueObjectimplementation: