• 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
Basic question - lightweight to-one relationship from entity to POJO/enum
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Basic question - lightweight to-one relationship from entity to POJO/enum


  • Subject: Basic question - lightweight to-one relationship from entity to POJO/enum
  • From: Mark Wardle <email@hidden>
  • Date: Thu, 8 Apr 2010 09:52:32 +0100

Hi all, please forgive a very simple question but I'd like to create a
lightweight (non-EO) to-one relationship from an EO. I make heavy use
of D2W so I want to fulfil the WO/EOF rules and use to-one
relationship components....

I usually create a new entity and have a genuine heavyweight EOF
relationship but I have several properties for which this seems
excessive.

I have an entity (FormEdssFull) which can have a visual field score
for both right and left eye.

Can I do this with a java enum?

public enum VisualAcuity {
  NORMAL(0, "Normal"),
  SIGNS_ONLY(1, "Signs only:"),
  MODERATE(2, "Moderate"),
  MARKED(3, "Marked");

/* insert enum constructor etc... */
}

and then create the appropriate accessor and mutator in the entity?

What do other people do in these situations?

Many thanks,

Mark

--
Dr. Mark Wardle
Specialist registrar, Neurology
Cardiff, UK
 _______________________________________________
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: Basic question - lightweight to-one relationship from entity to POJO/enum
      • From: David Avendasora <email@hidden>
    • Re: Basic question - lightweight to-one relationship from entity to POJO/enum
      • From: Ramsey Lee Gurley <email@hidden>
  • Prev by Date: Re: WOCommunity Maven repository is down again
  • Next by Date: Re: Basic question - lightweight to-one relationship from entity to POJO/enum
  • Previous by thread: Re: Concurrency Issue
  • Next by thread: Re: Basic question - lightweight to-one relationship from entity to POJO/enum
  • Index(es):
    • Date
    • Thread