-
-
Notifications
You must be signed in to change notification settings - Fork 263
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add Core Data model * Add JSON and Core Data model * Add unit tests * Run 2 times * Apply fix
- Loading branch information
Showing
6 changed files
with
97 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[ | ||
{ | ||
"busID": "0", | ||
"stops": [ | ||
{ | ||
"index": "0", | ||
} | ||
], | ||
"polyline": [ | ||
{ | ||
"index": "0", | ||
} | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>_XCCurrentVersionName</key> | ||
<string>151-many-to-many.xcdatamodel</string> | ||
</dict> | ||
</plist> |
34 changes: 34 additions & 0 deletions
34
Tests/Models/280.xcdatamodeld/151-many-to-many.xcdatamodel/contents
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<model type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="11232" systemVersion="16A323" minimumToolsVersion="Xcode 7.3" sourceLanguage="Objective-C" userDefinedModelVersionIdentifier=""> | ||
<entity name="Route" syncable="YES"> | ||
<attribute name="busID" optional="YES" attributeType="String" syncable="YES"> | ||
<userInfo> | ||
<entry key="hyper.isPrimaryKey" value="true"/> | ||
<entry key="hyper.remoteKey" value="busID"/> | ||
</userInfo> | ||
</attribute> | ||
<relationship name="polyline" optional="YES" toMany="YES" deletionRule="Cascade" destinationEntity="RoutePolylineItem" inverseName="route" inverseEntity="RoutePolylineItem" syncable="YES"/> | ||
<relationship name="stops" optional="YES" toMany="YES" deletionRule="Cascade" destinationEntity="RouteStop" inverseName="route" inverseEntity="RouteStop" syncable="YES"/> | ||
</entity> | ||
<entity name="RoutePolylineItem" syncable="YES"> | ||
<attribute name="index" optional="YES" attributeType="String" syncable="YES"> | ||
<userInfo> | ||
<entry key="hyper.isPrimaryKey" value="true"/> | ||
</userInfo> | ||
</attribute> | ||
<relationship name="route" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="Route" inverseName="polyline" inverseEntity="Route" syncable="YES"/> | ||
</entity> | ||
<entity name="RouteStop" syncable="YES"> | ||
<attribute name="index" optional="YES" attributeType="String" syncable="YES"> | ||
<userInfo> | ||
<entry key="hyper.isPrimaryKey" value="true"/> | ||
</userInfo> | ||
</attribute> | ||
<relationship name="route" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="Route" inverseName="stops" inverseEntity="Route" syncable="YES"/> | ||
</entity> | ||
<elements> | ||
<element name="Route" positionX="-117" positionY="-270" width="128" height="88"/> | ||
<element name="RoutePolylineItem" positionX="88" positionY="-300" width="128" height="75"/> | ||
<element name="RouteStop" positionX="88" positionY="-183" width="128" height="75"/> | ||
</elements> | ||
</model> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters