+2005-08-04 Helge Hess <helge.hess@opengroupware.org>
+
+ * NSEntityDescription+EO.m: added EO compatible attribute/relship
+ lookup methods (v4.5.6)
+
2005-08-04 Helge Hess <helge.hess@skyrix.com>
* NSPredicate+EO.m: also check 'selectorName' key during unarchiving
libEOCoreData_HEADER_FILES = \
EOCoreData.h \
EOCoreDataSource.h \
+ \
EOFetchSpecification+CoreData.h \
EOQualifier+CoreData.h \
EOSortOrdering+CoreData.h \
+ \
NSExpression+EO.h \
NSPredicate+EO.h \
+ NSEntityDescription+EO.h \
libEOCoreData_OBJC_FILES = \
EOCoreDataSource.m \
+ \
EOFetchSpecification+CoreData.m \
EOQualifier+CoreData.m \
EOSortOrdering+CoreData.m \
- NSExpression+EO.m \
- NSPredicate+EO.m \
EOKeyValueQualifier+CoreData.m \
EOKeyComparisonQualifier+CoreData.m \
EOCompoundQualifiers.m \
-
+ \
+ NSExpression+EO.m \
+ NSPredicate+EO.m \
+ NSEntityDescription+EO.m \
-include GNUmakefile.preamble
include $(GNUSTEP_MAKEFILES)/library.make
--- /dev/null
+/*
+ Copyright (C) 2005 SKYRIX Software AG
+
+ This file is part of SOPE.
+
+ SOPE is free software; you can redistribute it and/or modify it under
+ the terms of the GNU Lesser General Public License as published by the
+ Free Software Foundation; either version 2, or (at your option) any
+ later version.
+
+ SOPE is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
+ License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with SOPE; see the file COPYING. If not, write to the
+ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
+ 02111-1307, USA.
+*/
+
+#ifndef __NSEntityDescription_EO_H__
+#define __NSEntityDescription_EO_H__
+
+#import <CoreData/NSEntityDescription.h>
+/*
+ NSEntityDescription(EO)
+
+ Make an NSEntityDescription behave like an EOEntity. This is mostly to make
+ the CoreData model objects work with DirectToWeb and EO at the same time.
+*/
+
+@interface NSEntityDescription(EO)
+
+- (id)relationshipNamed:(NSString *)_name;
+- (id)attributeNamed:(NSString *)_name;
+
+@end
+
+#endif /* __NSEntityDescription_EO_H__ */
--- /dev/null
+/*
+ Copyright (C) 2005 SKYRIX Software AG
+
+ This file is part of SOPE.
+
+ SOPE is free software; you can redistribute it and/or modify it under
+ the terms of the GNU Lesser General Public License as published by the
+ Free Software Foundation; either version 2, or (at your option) any
+ later version.
+
+ SOPE is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
+ License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with SOPE; see the file COPYING. If not, write to the
+ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
+ 02111-1307, USA.
+*/
+
+#include "NSEntityDescription+EO.h"
+#include "common.h"
+
+@implementation NSEntityDescription(EO)
+
+- (id)relationshipNamed:(NSString *)_qname {
+ return [[self relationshipsByName] objectForKey:_qname];
+}
+
+- (id)attributeNamed:(NSString *)_qname {
+ return [[self attributesByName] objectForKey:_qname];
+}
+
+@end /* NSEntityDescription(EO) */
# version file
-SUBMINOR_VERSION:=5
+SUBMINOR_VERSION:=6