|
10 | 10 | #import "<$additionalHeaderFileName$>"
|
11 | 11 | <$endif$>
|
12 | 12 |
|
| 13 | +NS_ASSUME_NONNULL_BEGIN |
13 | 14 | <$if noninheritedAttributes.@count > 0$>
|
14 | 15 | @interface <$managedObjectClassName$>Attributes: NSObject <$foreach Attribute noninheritedAttributes do$>
|
15 | 16 | + (NSString *)<$Attribute.name$>;<$endforeach do$>
|
|
53 | 54 | * <$userInfo.discussion$>
|
54 | 55 | */
|
55 | 56 | <$endif$>
|
| 57 | + |
56 | 58 | @interface _<$managedObjectClassName$> : <$customSuperentity$>
|
57 | 59 | + (instancetype)insertInManagedObjectContext:(NSManagedObjectContext *)moc_;
|
58 | 60 | + (NSString*)entityName;
|
59 | 61 | + (NSEntityDescription*)entityInManagedObjectContext:(NSManagedObjectContext*)moc_;
|
60 |
| -@property (nonatomic, readonly, strong) <$managedObjectClassName$>ID* objectID; |
| 62 | +@property (nonatomic, readonly, strong) <$managedObjectClassName$>ID*objectID; |
61 | 63 |
|
62 | 64 | <$foreach Attribute noninheritedAttributes do$>
|
63 | 65 | <$if Attribute.userInfo.documentation$>
|
|
69 | 71 | <$endif$>
|
70 | 72 | <$if Attribute.hasDefinedAttributeType$>
|
71 | 73 | <$if Attribute.isReadonly$>
|
72 |
| -@property (nonatomic, strong, readonly) <$Attribute.objectAttributeType$> <$Attribute.name$>; |
| 74 | +@property (nonatomic, strong, readonly<$if Attribute.optional$>, nullable<$endif$>) <$Attribute.objectAttributeType$> <$Attribute.name$>; |
73 | 75 | <$else$>
|
74 |
| -@property (nonatomic, strong) <$Attribute.objectAttributeType$> <$Attribute.name$>; |
| 76 | +@property (nonatomic, strong<$if Attribute.optional$>, nullable<$endif$>) <$Attribute.objectAttributeType$> <$Attribute.name$>; |
75 | 77 | <$endif$>
|
76 | 78 | <$if Attribute.hasScalarAttributeType$>
|
77 | 79 | <$if Attribute.isReadonly$>
|
|
95 | 97 | */
|
96 | 98 | <$endif$>
|
97 | 99 | <$if Relationship.isToMany$>
|
98 |
| -@property (nonatomic, strong) <$Relationship.immutableCollectionClassName$> *<$Relationship.name$>; |
99 |
| -- (<$Relationship.mutableCollectionClassName$>*)<$Relationship.name$>Set; |
| 100 | +@property (nonatomic, strong<$if Relationship.optional$>, nullable<$endif$>) <$Relationship.immutableCollectionClassName$> *<$Relationship.name$>; |
| 101 | +- (<$if Relationship.optional$>nullable <$endif$><$Relationship.mutableCollectionClassName$>*)<$Relationship.name$>Set; |
100 | 102 | <$else$>
|
101 |
| -@property (nonatomic, strong) <$Relationship.destinationEntity.managedObjectClassName$> *<$Relationship.name$>; |
| 103 | +@property (nonatomic, strong<$if Relationship.optional$>, nullable<$endif$>) <$Relationship.destinationEntity.managedObjectClassName$> *<$Relationship.name$>; |
102 | 104 | //- (BOOL)validate<$Relationship.name.initialCapitalString$>:(id*)value_ error:(NSError**)error_;
|
103 | 105 | <$endif$>
|
104 | 106 | <$endforeach do$>
|
|
119 | 121 | * <$FetchedProperty.userInfo.discussion$>
|
120 | 122 | */
|
121 | 123 | <$endif$>
|
122 |
| -@property (nonatomic, readonly) NSArray *<$FetchedProperty.name$>; |
| 124 | +@property (nonatomic, readonly<$if FetchedProperty.optional$>, nullable<$endif$>) NSArray *<$FetchedProperty.name$>; |
123 | 125 | <$endforeach do$>
|
124 | 126 | <$if TemplateVar.frc$>
|
125 | 127 | #if TARGET_OS_IPHONE
|
|
132 | 134 | <$endif$>
|
133 | 135 | @end
|
134 | 136 |
|
| 137 | + |
135 | 138 | <$foreach Relationship noninheritedRelationships do$>
|
136 | 139 | <$if Relationship.isToMany$>
|
137 | 140 | @interface _<$managedObjectClassName$> (<$Relationship.name.initialCapitalString$>CoreDataGeneratedAccessors)
|
|
172 | 175 | <$endif$>
|
173 | 176 | <$endforeach do$>
|
174 | 177 | @end
|
| 178 | +NS_ASSUME_NONNULL_END |
0 commit comments