• 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: java 1.5 enum types and EOs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: java 1.5 enum types and EOs


  • Subject: Re: java 1.5 enum types and EOs
  • From: Mike Schrag <email@hidden>
  • Date: Tue, 27 Jan 2009 17:23:36 -0500

yes, if you're using ERPrototypes, just use the javaEnum prototype and set your className to your enum class ... or just look at what it does ... it's pretty easy

ms

On Jan 27, 2009, at 5:18 PM, Ricardo J. Parada wrote:


Has anybody explored using java 1.5 enum type for an EO's property? Is there an easy way to do this?


For example, let's say I have a UserRequest EO and I wanted to have the following statuses:

	public enum Status { Draft, Ready, InProgress, Done };

How would the setStatus() and status() accessor methods should be written and how should the property be setup in the eomodel?

Or should I stick with using an Integer property and hard code the integer values for each status? :-)

Thanks,
Ricardo

_______________________________________________
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: java 1.5 enum types and EOs
      • From: Ken Anderson <email@hidden>
References: 
 >java 1.5 enum types and EOs (From: "Ricardo J. Parada" <email@hidden>)

  • Prev by Date: java 1.5 enum types and EOs
  • Next by Date: Re: WOLips can't load prototypes from jar anymore
  • Previous by thread: java 1.5 enum types and EOs
  • Next by thread: Re: java 1.5 enum types and EOs
  • Index(es):
    • Date
    • Thread