• 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: Updating EOObjects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Updating EOObjects


  • Subject: Re: Updating EOObjects
  • From: LD <email@hidden>
  • Date: Sat, 20 Aug 2005 03:28:40 +1000

Hi Jonathan,

On 19/08/2005, at 8:04 AM, Jonathan Miller wrote:

The relationship are created straight out of the EOModeler's Java Generation Tool so I hope this is what you are asking for

/* Excerpt from License.java */
    public String principalid() {
        return (String)storedValueForKey("principalid");
    }

    public void setPrincipalid(String value) {
        takeStoredValueForKey(value, "principalid");
    }
    public Number productId() {
        return (Number)storedValueForKey("productId");
    }

    public void setProductId(Number value) {
        takeStoredValueForKey(value, "productId");
    }

1) Get rid of the above - primary/foreign key attributes shouldn't be found (in most cases) in your Java code. They're database artifacts...
2) open up EOModeler again, go to Tools > Table Mode, and 
for ( each entity in your model ) {
    for ( each primary || foreign key columns ) {
        deselect them as class attributes <i.e., diamond key should be off> 
    }
}
3) Re-generate your Java files...

Then, as Chuck mentioned - EOF will handle these things automatically...

with regards,
--

LD


 _______________________________________________
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

References: 
 >Updating EOObjects (From: Jonathan Miller <email@hidden>)
 >Re: Updating EOObjects (From: Chuck Hill <email@hidden>)
 >Re: Updating EOObjects (From: Jonathan Miller <email@hidden>)
 >Re: Updating EOObjects (From: Jonathan Miller <email@hidden>)

  • Prev by Date: Re: Updating EOObjects
  • Next by Date: Re: Unicode trouble
  • Previous by thread: Re: Updating EOObjects/Selecting EOObjects
  • Next by thread: Re: Updating EOObjects
  • Index(es):
    • Date
    • Thread