// DO NOT EDIT. This file is machine-generated and constantly overwritten.
// Make changes to Setting.m instead.

#import "_Setting.h"

const struct SettingAttributes SettingAttributes = {
	.name = @"name",
	.value = @"value",
};

const struct SettingRelationships SettingRelationships = {
};

const struct SettingFetchedProperties SettingFetchedProperties = {
};

@implementation SettingID
@end

@implementation _Setting

+ (id)insertInManagedObjectContext:(NSManagedObjectContext*)moc_ {
	NSParameterAssert(moc_);
	return [NSEntityDescription insertNewObjectForEntityForName:@"Setting" inManagedObjectContext:moc_];
}

+ (NSString*)entityName {
	return @"Setting";
}

+ (NSEntityDescription*)entityInManagedObjectContext:(NSManagedObjectContext*)moc_ {
	NSParameterAssert(moc_);
	return [NSEntityDescription entityForName:@"Setting" inManagedObjectContext:moc_];
}

- (SettingID*)objectID {
	return (SettingID*)[super objectID];
}

+ (NSSet *)keyPathsForValuesAffectingValueForKey:(NSString *)key {
	NSSet *keyPaths = [super keyPathsForValuesAffectingValueForKey:key];
	
	if ([key isEqualToString:@"valueValue"]) {
		NSSet *affectingKey = [NSSet setWithObject:@"value"];
		keyPaths = [keyPaths setByAddingObjectsFromSet:affectingKey];
	}

	return keyPaths;
}




@dynamic name;






@dynamic value;



- (BOOL)valueValue {
	NSNumber *result = [self value];
	return [result boolValue];
}

- (void)setValueValue:(BOOL)value_ {
	[self setValue:[NSNumber numberWithBool:value_]];
}

- (BOOL)primitiveValueValue {
	NSNumber *result = [self primitiveValue];
	return [result boolValue];
}

- (void)setPrimitiveValueValue:(BOOL)value_ {
	[self setPrimitiveValue:[NSNumber numberWithBool:value_]];
}










@end
