• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: question about javaEnum prototype
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: question about javaEnum prototype


  • Subject: Re: question about javaEnum prototype
  • From: Kieran Kelleher <email@hidden>
  • Date: Sat, 21 Jul 2012 16:30:01 -0400

On Jul 21, 2012, at 3:30 PM, Tim Worman <email@hidden> wrote:

> Thanks Ramsey.
>
> Yeah. I would really need a many-to-many relationship - which I was hoping to avoid. :-) I was wanting to just store and query "keywords" for my EO. A flattened many-to-many seems heavy to just associate string values. A good example would be a Contact entity where you maybe have a set of keywords like:
>
> Christmas Card, Daily Mailer, Friend, Family, Special Offer, etc.
>

You might consider ERTag?


> In the past, I've rolled a similar thing by writing the contents of an array to a comma-separated String - and back when reading from the database. Maybe the prototype 'stringArray' would be better?
>
> Tim
> UCLA GSE&IS
>
> On Jul 21, 2012, at 9:24 AM, Ramsey Gurley <email@hidden> wrote:
>
>> For a 'to-one' type of arrangement, enums are perfect so long as your categories don't change often.
>>
>> For a 'to-many' you are describing, they are less so. You could serialize an enum set, but then you can't query it.  The only other solution I know of would be to put them on a table and relate to that… which sorta defeats the purpose of using an enum.
>>
>> Ramsey
>>
>> On Jul 21, 2012, at 8:25 AM, Tim Worman wrote:
>>
>>> WO'ers:
>>>
>>> I have an Enitity that I would like to assign n categories to - essentially descriptive strings. I have never used the javaEnum prototype and I was wondering if it would be good for this task? On the UI side I would like to use checkboxes to select which categories to apply to an EO. Then, in the database have only those selections saved to the database.
>>>
>>> Tim
>>> UCLA GSE&IS
>>>
>>> _______________________________________________
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list      (email@hidden)
>>> Help/Unsubscribe/Update your Subscription:
>>>
>>> This email sent to email@hidden
>>
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: question about javaEnum prototype
      • From: Tim Worman <email@hidden>
References: 
 >question about javaEnum prototype (From: Tim Worman <email@hidden>)
 >Re: question about javaEnum prototype (From: Ramsey Gurley <email@hidden>)
 >Re: question about javaEnum prototype (From: Tim Worman <email@hidden>)

  • Prev by Date: Re: ERDEditHTML and tiny_mce
  • Next by Date: Re: Git repo layout for own WO projects
  • Previous by thread: Re: question about javaEnum prototype
  • Next by thread: Re: question about javaEnum prototype
  • Index(es):
    • Date
    • Thread