• 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
EO class file generation discrepancy with read-only?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

EO class file generation discrepancy with read-only?


  • Subject: EO class file generation discrepancy with read-only?
  • From: Kieran Kelleher <email@hidden>
  • Date: Tue, 4 May 2004 10:13:24 -0400

I have a model with one derived attribute, zip5 defined as LEFT(zip,5).
I have marked it as 'Read Only' in EOModeler. When I generate the java
class, EOModeler always makes a setZip5 method like this...
     public void setZip5(String value) {
         takeStoredValueForKey(value, "zip5");
Is this a bug? Since it is read-only, should I remove the method?

Also, I found that I sometimes got a validation exception saying that
zip5 could not be null even when I was not binding any input to that
class attribute. So, I also had to define this read-only derived
attribute as Allow Null ..... is this strange bahaviour for EOF?

- Kieran

________________________________________________________________
Config = OS X 10.3.3 / Java 1.4.1 /  WO 5.2.2 / XCode v1.1 / MySQL
4.0.18 / Connector-J 3.0.11
Blog: http://webobjects.webhop.org/
_______________________________________________
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.


  • Prev by Date: Re: Weird behavior - bug?
  • Next by Date: InterApplication Communication
  • Previous by thread: [ANN] FetchSpecBatchIterator
  • Next by thread: InterApplication Communication
  • Index(es):
    • Date
    • Thread