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

#import "_Trip.h"

const struct TripAttributes TripAttributes = {
	.beginDate = @"beginDate",
	.beginState = @"beginState",
	.distance = @"distance",
	.endDate = @"endDate",
	.endState = @"endState",
	.isBusiness = @"isBusiness",
	.isFavorite = @"isFavorite",
	.purpose = @"purpose",
};

const struct TripRelationships TripRelationships = {
	.favorite = @"favorite",
};

const struct TripFetchedProperties TripFetchedProperties = {
};

@implementation TripID
@end

@implementation _Trip

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

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

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

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

+ (NSSet *)keyPathsForValuesAffectingValueForKey:(NSString *)key {
	NSSet *keyPaths = [super keyPathsForValuesAffectingValueForKey:key];
	
	if ([key isEqualToString:@"beginStateValue"]) {
		NSSet *affectingKey = [NSSet setWithObject:@"beginState"];
		keyPaths = [keyPaths setByAddingObjectsFromSet:affectingKey];
	}
	if ([key isEqualToString:@"distanceValue"]) {
		NSSet *affectingKey = [NSSet setWithObject:@"distance"];
		keyPaths = [keyPaths setByAddingObjectsFromSet:affectingKey];
	}
	if ([key isEqualToString:@"endStateValue"]) {
		NSSet *affectingKey = [NSSet setWithObject:@"endState"];
		keyPaths = [keyPaths setByAddingObjectsFromSet:affectingKey];
	}
	if ([key isEqualToString:@"isBusinessValue"]) {
		NSSet *affectingKey = [NSSet setWithObject:@"isBusiness"];
		keyPaths = [keyPaths setByAddingObjectsFromSet:affectingKey];
	}
	if ([key isEqualToString:@"isFavoriteValue"]) {
		NSSet *affectingKey = [NSSet setWithObject:@"isFavorite"];
		keyPaths = [keyPaths setByAddingObjectsFromSet:affectingKey];
	}

	return keyPaths;
}




@dynamic beginDate;






@dynamic beginState;



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

- (void)setBeginStateValue:(double)value_ {
	[self setBeginState:[NSNumber numberWithDouble:value_]];
}

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

- (void)setPrimitiveBeginStateValue:(double)value_ {
	[self setPrimitiveBeginState:[NSNumber numberWithDouble:value_]];
}





@dynamic distance;



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

- (void)setDistanceValue:(double)value_ {
	[self setDistance:[NSNumber numberWithDouble:value_]];
}

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

- (void)setPrimitiveDistanceValue:(double)value_ {
	[self setPrimitiveDistance:[NSNumber numberWithDouble:value_]];
}





@dynamic endDate;






@dynamic endState;



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

- (void)setEndStateValue:(double)value_ {
	[self setEndState:[NSNumber numberWithDouble:value_]];
}

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

- (void)setPrimitiveEndStateValue:(double)value_ {
	[self setPrimitiveEndState:[NSNumber numberWithDouble:value_]];
}





@dynamic isBusiness;



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

- (void)setIsBusinessValue:(BOOL)value_ {
	[self setIsBusiness:[NSNumber numberWithBool:value_]];
}

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

- (void)setPrimitiveIsBusinessValue:(BOOL)value_ {
	[self setPrimitiveIsBusiness:[NSNumber numberWithBool:value_]];
}





@dynamic isFavorite;



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

- (void)setIsFavoriteValue:(BOOL)value_ {
	[self setIsFavorite:[NSNumber numberWithBool:value_]];
}

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

- (void)setPrimitiveIsFavoriteValue:(BOOL)value_ {
	[self setPrimitiveIsFavorite:[NSNumber numberWithBool:value_]];
}





@dynamic purpose;






@dynamic favorite;

	






@end
