diff --git a/templates/machine.h.motemplate b/templates/machine.h.motemplate index 05c5024c..ddc3061e 100644 --- a/templates/machine.h.motemplate +++ b/templates/machine.h.motemplate @@ -146,13 +146,17 @@ NS_ASSUME_NONNULL_BEGIN @interface _<$managedObjectClassName$> (CoreDataGeneratedPrimitiveAccessors) <$foreach Attribute noninheritedAttributesSansType do$> <$if Attribute.hasDefinedAttributeType$> +<$if Attribute.name != "type" && Attribute.name != "value"$> - (<$Attribute.objectAttributeType$>)primitive<$Attribute.name.initialCapitalString$>; - (void)setPrimitive<$Attribute.name.initialCapitalString$>:(<$Attribute.objectAttributeType$>)value; +<$endif$> <$if Attribute.hasScalarAttributeType$> +<$if Attribute.name != "type" && Attribute.name != "value"$> - (<$Attribute.scalarAttributeType$>)primitive<$Attribute.name.initialCapitalString$>Value; - (void)setPrimitive<$Attribute.name.initialCapitalString$>Value:(<$Attribute.scalarAttributeType$>)value_; <$endif$> <$endif$> +<$endif$> <$endforeach do$> <$foreach Relationship noninheritedRelationships do$> <$if Relationship.isToMany$> diff --git a/templates/machine.m.motemplate b/templates/machine.m.motemplate index 70129f2c..d8e28280 100644 --- a/templates/machine.m.motemplate +++ b/templates/machine.m.motemplate @@ -72,7 +72,7 @@ } <$endif$> -<$if Attribute.name != "type"$> +<$if Attribute.name != "type" && Attribute.name != "value"$> - (<$Attribute.scalarAttributeType$>)primitive<$Attribute.name.initialCapitalString$>Value { NSNumber *result = [self primitive<$Attribute.name.initialCapitalString$>]; return [result <$Attribute.scalarAccessorMethodName$>];