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

#import "_Odometer.h"

const struct OdometerAttributes OdometerAttributes = {
	.date = @"date",
	.state = @"state",
};

const struct OdometerRelationships OdometerRelationships = {
};

const struct OdometerFetchedProperties OdometerFetchedProperties = {
};

@implementation OdometerID
@end

@implementation _Odometer

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

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

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

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

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

	return keyPaths;
}




@dynamic date;






@dynamic state;



- (double)stateValue {
	NSNumber *result = [self state];
	return [result doubleValue];
}

- (void)setStateValue:(double)value_ {
	[self setState:[NSNumber numberWithDouble:value_]];
}

- (double)primitiveStateValue {
	NSNumber *result = [self primitiveState];
	return [result doubleValue];
}

- (void)setPrimitiveStateValue:(double)value_ {
	[self setPrimitiveState:[NSNumber numberWithDouble:value_]];
}










@end
