• 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: Enterprise objects stored in JSON or byte
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Enterprise objects stored in JSON or byte


  • Subject: Re: Enterprise objects stored in JSON or byte
  • From: Mark Wardle <email@hidden>
  • Date: Thu, 20 Dec 2018 07:36:31 +0000

That is a much better idea than my original thoughts, and feels as if I
won't be fighting the system - which is always a good indicator that one's
design is wrong when building WO applications.

Thank you.

On Wed, 19 Dec 2018 at 18:37, Samuel Pelletier <email@hidden> wrote:

> Hi Mark,
>
> I've done dynamic forms in the past (in PHP and WO) and never tried to map
> them to an ORM entity. I think it is better to model your a Form entity and
> another one for answers (FilledForm or CompletedForm). The Form entity is
> the Meta model with the questions and the other contains only answers. You
> end with 2 symmetric hierarchies with one answer class for each question
> type class (numeric, text, choice, boolean, image, ...). Each of the Answer
> class has it's edit component.
>
> The display form component is build by displaying the proper edit
> component for each answer in order. For easy D2W integration, I think you
> can initialize a new form  with blank answers and simply use the D2W magic
> to display the complete form (using an ordered toMany from the
> CompletedForm entity to it's answers) .
>
> Regards,
>
> Samuel
>
>
> > Le 19 déc. 2018 à 10:39, Mark Wardle <email@hidden> a écrit :
> >
> > I want to define a group enterprise objects at runtime and yet use them
> in a fairly similar way to "normal" enterprise objects.
> >
> > Essentially, I want a generic object that is backed by a NSDictionary
> (or other persistence mechanism like bytes/protobuf) and has a defined
> behaviour class. I would like to define the model at runtime rather than
> using EOModeler. The definition of the object (list of properties and for
> each property: name, dataType, class, prototype etc.) defined itself at
> runtime in the backing database.
> >
> > Anyone done something similar, and if so, what is the best approach? I
> have contemplated building a generic EO that delegates its behaviour and
> data to the behaviour class and the backing NSDictionary respectively, and
> alters the implementation of KVC to make it fairly transparent. I'm aware
> that some of the hidden "magic" that comes from defining an object in
> EOModeler might be lost.
> >
> > Any hints/tips gratefully received!
> >
> > Best wishes,
> >
> > Mark
> >
> >
> >
> > _______________________________________________
> > 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
>
>

--
Dr. Mark Wardle
Consultant Neurologist and Clinical informatician, University Hospital
Wales, Cardiff, UK
Chair, NHS Wales Technical Standards Board.
Email: email@hidden or email@hidden  Twitter: @mwardle
Telephone: 02920745274 (secretary) or facsimile: 02920744166
 _______________________________________________
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

References: 
 >Enterprise objects stored in JSON or byte (From: Mark Wardle <email@hidden>)
 >Re: Enterprise objects stored in JSON or byte (From: Samuel Pelletier <email@hidden>)

  • Prev by Date: Re: Enterprise objects stored in JSON or byte
  • Next by Date: Re: Enterprise objects stored in JSON or byte
  • Previous by thread: Re: Enterprise objects stored in JSON or byte
  • Index(es):
    • Date
    • Thread