Re: EOF Design Questions

Francis Labrie <[email protected]> Thu, 8 Apr 2004 10:45:47 -0400
Newsgroups gmane.comp.web.webobjects.eof
Message-ID <[email protected]>
Hi,


Sorry, there was two typos in the previous code:


	public Object clone() {
		Enumeration keys;
		EOEnterpriseObject object;
		Object value;
		String key;

		object = 
EOClassDescription.classDescriptionForEntityName(entityName()).
			createInstanceWithEditingContext(editingContext(), null);

		keys = allPropertyKeys().objectEnumerator();
		while(keys.hasMoreElements()) {
			key = (String)keys.nextElement();
			object.takeValueForKey(valueForKey(key), key);
		} // while

		return(object);
	} // clone


--
Francis Labrie
Saint-Bruno-de-Montarville, Quebec, Canada