• 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
To-one relationship always returns a fault
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

To-one relationship always returns a fault


  • Subject: To-one relationship always returns a fault
  • From: Greg Hulands <email@hidden>
  • Date: Fri, 30 Apr 2004 15:52:29 +1000

In my model I have two entities, one Product and the other ProductImage. Currently there are no records in the ProductImage table as I am just implementing this functionality. The only problem is that Product always returns a fault for the image, eg product.image() instead of returning null. In the model I have the Product owning the image and have the relationship as optional.

How do I overcome this as I was trying to implement a helper method on the product class

public boolean hasImage() {
	return image() != null;
}

always returns true, when it should return false.

What am I doing wrong?

Any help is greatly appreciated.

Regards,
Greg
_______________________________________________
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: deploy webobjects in servlet
  • Next by Date: Re: To-one relationship always returns a fault
  • Previous by thread: Re: deploy webobjects in servlet
  • Next by thread: Re: To-one relationship always returns a fault
  • Index(es):
    • Date
    • Thread