• 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
exception with a not null constraint....
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

exception with a not null constraint....


  • Subject: exception with a not null constraint....
  • From: Theodore Petrosky <email@hidden>
  • Date: Sat, 25 Apr 2009 06:09:20 -0700 (PDT)

I have an EO with a not null constraint on a date columnn. I have a function that I call from a click that sets a boolean (isDeleted) to true and saves the EO.

try {
	contactEO.saveChanges();
} catch (ValidationException e) {
	NSLog.out.appendln("ValidationException e = " + e.getMessage());

} catch (EOGeneralAdaptorException e) {
	NSLog.out.appendln("EOGeneralAdaptorException e = " + e.getMessage());
}
}

It is throwing an exception and claiming that the date field is null and violates the not null constraint. I don't have anyplace in the interface that is wired to the date column in question (it is the insertion date).

I guess I could just set the EO to accept nulls but I thought I would try to understand why the saveChanges() is trying to update the row with a null.

Thanks,

Ted





 _______________________________________________
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: exception with a not null constraint....
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: Build dependencies: A different approach
  • Next by Date: Quick Question about WONDER
  • Previous by thread: Re: Entity Modeler's Properties : Docs tab
  • Next by thread: Re: exception with a not null constraint....
  • Index(es):
    • Date
    • Thread