Re: Using Custom Data types in EOModeler
Re: Using Custom Data types in EOModeler
- Subject: Re: Using Custom Data types in EOModeler
- From: Giorgio Valoti <email@hidden>
- Date: Wed, 17 Sep 2003 22:02:04 +0200
On Mercoledl, set 17, 2003, at 16:03 Europe/Rome, Merul Patel wrote:
Hi,
Can anyone offer some advice or up to date documentation links for
using EOModeler to assign an attribute to a custom Java class?
I'm trying to store a NSDictionary object into my database, and had
hoped to be able to assign suitable Factory and Conversion methods,
but it seems this isn't possible without defining my own custom class
extending NSDictionary, since NSDictionary does have any methods that
can act of NSString or NSData to instantiate an NSDictionary.
The only reference I found is located in the EOAttribute's JavaDoc.
That said, I'd use composition instead of inheritance, i.e. your custom
data type should implement the factory and conversion methods, say with
NSPropertyListSerialization and use an NSDictionary as a storage object.
HTH
--
Giorgio Valoti
-------------
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.