• 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: Working with Multiple Models
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Working with Multiple Models


  • Subject: Re: Working with Multiple Models
  • From: David Avendasora <email@hidden>
  • Date: Tue, 3 Nov 2009 15:41:13 -0500


On Nov 3, 2009, at 3:22 PM, Johnny Miller wrote:

That's great.  Accept...

1. I have to go back and undo all my unnecessary changes >:(

Been there. It sucks.

2. EOModeler doesn't seem to like this operation. After changing the entity name the flattened relationships become broken. The intermediary table doesn't pick up on the change in the destination. So, I went in with VI and changed the plist file to go to the new destination. That works in that eogen was able to create the java files correctly, but the downside is now I have a red x next to my EO Model file in the package explorer. I tried cleaning the workspace and restarting Eclipse to no avail.

Look at the "Problems" tab.

PNG image



What does it say the error is?

If you are certain that it is a false error, you can select the "error" and delete it. If you clean and rebuild and it comes back, then it likely really is an error.

Dave



best,

Johnny

On Nov 3, 2009, at 3:17 AM, David Avendasora wrote:



On Nov 3, 2009, at 3:03 AM, Johnny Miller wrote:

Thanks David,

While that seems obvious in retrospect, I was under the failed impression that the entity name and the class name had to be the same.

Just to be clear,

I could have an Entity named "Sprockets" with a java class name of com.spacely.eo.SpacelySprockets?

Yes.

You could also have two separate entities of SpacelySprocket and CogswellSprocket with classes of:

com.spacely.eo.Sprocket
com.cogswell.eo.Sprocket

The class names are identical, but have different packages.

WebObjects is almost too flexible on this in my opinion, but probably because of the limitation of requiring unique Entity names. :-)

Dave

Thanks a lot,

Johnny


On Nov 2, 2009, at 5:50 PM, David Avendasora wrote:

To be clear, the DB table names and java class names (as long as the packages are different) can be the same, but the Entity names need to be different.

I always try to keep the DB table, Entity and class name the same, but there's no rule that says you have to (other than the "keep it simple" rule).

Dave

On Nov 2, 2009, at 7:35 PM, Johnny Miller wrote:

That stinks.

Thanks for letting me know.

On Nov 2, 2009, at 2:31 PM, Chuck Hill wrote:


On Nov 2, 2009, at 4:29 PM, Johnny Miller wrote:

Hi,

My particular issue is that I have two models that both have an entity with the same name (User).

Can't. Just flat out can't. Change one of the names.


Chuck



They are in different packages but WO is still confused and is throwing an error about the entity being in a different database ....

Thanks in advance,

Johnny

On Nov 2, 2009, at 2:25 PM, David LeBer wrote:


On 2009-11-02, at 7:18 PM, Johnny Miller wrote:

Hi,

Is there a place where I can find documentation on this subject? The Object Style wiki hasn't completed this section yet.

Thanks in advance,


Is there something specific you wish to know?

;david

--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site: 	http://codeferous.com
blog: 	http://davidleber.net
profile:	http://www.linkedin.com/in/davidleber
twitter:	http://twitter.com/rebeld
--
Toronto Area Cocoa / WebObjects developers group:
http://tacow.org




_______________________________________________
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


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (Webobjects- email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

-- Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects









Johnny Miller Kahalawai Media Corp http://www.kahalawai.com



_______________________________________________
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




Johnny Miller Kahalawai Media Corp http://www.kahalawai.com







Johnny Miller Kahalawai Media Corp http://www.kahalawai.com






 _______________________________________________
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: 
 >Working with Multiple Models (From: Johnny Miller <email@hidden>)
 >Re: Working with Multiple Models (From: David LeBer <email@hidden>)
 >Re: Working with Multiple Models (From: Johnny Miller <email@hidden>)
 >Re: Working with Multiple Models (From: Chuck Hill <email@hidden>)
 >Re: Working with Multiple Models (From: Johnny Miller <email@hidden>)
 >Re: Working with Multiple Models (From: David Avendasora <email@hidden>)
 >Re: Working with Multiple Models (From: Johnny Miller <email@hidden>)
 >Re: Working with Multiple Models (From: David Avendasora <email@hidden>)
 >Re: Working with Multiple Models (From: Johnny Miller <email@hidden>)

  • Prev by Date: The requested application was not found on this server.
  • Next by Date: Re: Objects don't get initialized sometimes
  • Previous by thread: Re: Working with Multiple Models
  • Next by thread: Re: Working with Multiple Models
  • Index(es):
    • Date
    • Thread