• 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: Problem in Direct to Java Client app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem in Direct to Java Client app


  • Subject: Re: Problem in Direct to Java Client app
  • From: Robert Walker <email@hidden>
  • Date: Mon, 29 Dec 2003 02:05:54 -0500

I'm not sure if there's enough information here to help you. There seems to be a few problems with the design though.

You should make your enumeration with two fields, one Integer as the primary key for the enumeration entity and another for your string value VARCHAR(2) or whatever. Let EOF generate the primary keys (don't make them class properties so they will not be used in your class definition). You will be much better off letting EOF handle primary and foreign keys. If you need a user presentable key then use a separate field and put a unique index on it in the database.

If designed properly Direct to Java Client (D2JC) may give you exactly what you want without having to change anything. I'd have to do some testing to be sure of this.

Make sure you follow the rules defined in the D2JC book for enumeration entities (i.e. make sure the relationships are set correctly etc.).

D2JC wants things configured a certain way and if you deviate too much from what it expects your results will be less than desirable.

I'd be glad to help if you can provide a bit more information about your basic design. How are your relationships configured? What is D2JC giving you as a default widget? Is D2JC automatically setting your entity as an enumeration or are you changing that manually with the assistant? Any other information you can provide would be helpful.

On Dec 28, 2003, at 11:08 PM, Edward A. Scanzano wrote:

Hi All,



I have a Direct to Java Client app that I am trying to configure a field to
be a EOOneValueEnumerationController and it refuses to show any values when
I click on the combo box. I have one entity listed in my enumeration
entities and it has a primary key that is a VARCHAR2. What is wrong? Also,
how to I directly attach the values for the EOOneValueEnumerationController
to a particular enumeration entity?




Thanks

Ed
_______________________________________________
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.



--
Sincerely,
Robert Walker
_______________________________________________
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.

References: 
 >Problem in Direct to Java Client app (From: "Edward A. Scanzano" <email@hidden>)

  • Prev by Date: Problem in Direct to Java Client app
  • Next by Date: JPDA on Mac OSX?
  • Previous by thread: Problem in Direct to Java Client app
  • Next by thread: JPDA on Mac OSX?
  • Index(es):
    • Date
    • Thread