• 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: Many to many relationship... some problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Many to many relationship... some problem


  • Subject: Re: Many to many relationship... some problem
  • From: Lachlan Deck <email@hidden>
  • Date: Tue, 4 Aug 2009 00:10:28 +1000

On 03/08/2009, at 7:21 PM, Francesco Romano wrote:

Hi..
I'm having some problem with a many-to-many relationship.
I've two entities: Order and Product.
They have a many-to-many relationship, and an attribute: quantity.
The strange thing is that I don't see the OrderProduct model generated...

Check the value of Class Name in the model. It's probably EOGenericRecord. Change it to you.model.OrderProduct


Well.. to be honest I don't understand how many-to-many works... (In WO.. I know the "DB-theory")...

OrderProduct orderProduct = (OrderProduct)EOUtilities.createAndInsertInstance(ec, OrderProduct.ENTITY_NAME);
// or
OrderProduct orderProduct = OrderProduct.createOrderProduct(ec, product, order);
orderProduct.setQuantity(quantity);


ec.saveChanges();

What particular questions do you have?

with regards,
--

Lachlan Deck

_______________________________________________
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: Many to many relationship... some problem
      • From: Francesco Romano <email@hidden>
References: 
 >Many to many relationship... some problem (From: Francesco Romano <email@hidden>)

  • Prev by Date: Re: Getting into WebObjects?
  • Next by Date: Re: True war deployment and WebServerResources
  • Previous by thread: Many to many relationship... some problem
  • Next by thread: Re: Many to many relationship... some problem
  • Index(es):
    • Date
    • Thread