• 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: Default values in EOF
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Default values in EOF


  • Subject: Re: Default values in EOF
  • From: email@hidden
  • Date: Wed, 27 Apr 2005 19:44:42 +0200

Hi  Guido,
yes, i think you didn't understand me.
Validation will not help.
in Database you can add for every column(Attribute) a default value
example:
table has columns: name, surname, age, etc.. and isValid.
isValid is a bit column, it has a default value in the Database like "1" for
true and refuses NULL value .

So EOF wants to write.
validateForSave() will checks weather isVaild is not NULL, is it null an
exception will thrown.
usually if you use sql this will not happen because the database notes that
isValid has a default value "1". therefore it accepts your new row.

EOF unfortunately does NOT know anything about default values in the
database, and validateForSave() will throw definitely an exception.

Hope this explains my problem.

peaSe,

Sako.


----- Original Message -----
From: "Guido Neitzer" <email@hidden>
To: <email@hidden>; "WebObjects Dev (Apple)"
<email@hidden>
Sent: Wednesday, April 27, 2005 7:31 PM
Subject: Re: Default values in EOF


> "email@hidden" <email@hidden> wrote:
>
> > Any can give me a hint to solve this?
>
> Perhaps I don't understand your problem, but what about validation?
>
> cug
> > Hello,
> > i have in the databse some default values for some attributes.
> > Some of these attributes do not accept null.
> > My problem is, EOF does not know the attributes have default value. if
user
> > does not inserts any value an exception is thorwn.

> > Any can give me a hint to solve this?

> > Thank you,
> > Sako.
>
>
>

 _______________________________________________
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: Default values in EOF
      • From: Guido Neitzer <email@hidden>
    • Re: Default values in EOF
      • From: David Holt <email@hidden>
References: 
 >Re: Default values in EOF (From: Guido Neitzer <email@hidden>)

  • Prev by Date: Re: Default values in EOF
  • Next by Date: Re: Default values in EOF
  • Previous by thread: Re: Default values in EOF
  • Next by thread: Re: Default values in EOF
  • Index(es):
    • Date
    • Thread