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.
<<inline: PastedGraphic-1.png>>
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. :-)DaveThanks 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. ChuckThey 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 (Webobjects-dev@lists.apple.com )Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/jlmiller%40kahalawai.com This email sent to jlmil...@kahalawai.com_______________________________________________ Do not post admin requests to the list. They will be ignored.Webobjects-dev mailing list (Webobjects- d...@lists.apple.com)Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net-- Chuck Hill Senior Consultant / VP DevelopmentPractical 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_webobjectsJohnny Miller Kahalawai Media Corp http://www.kahalawai.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40avendasora.com This email sent to webobje...@avendasora.comJohnny Miller Kahalawai Media Corp http://www.kahalawai.comJohnny Miller Kahalawai Media Corp http://www.kahalawai.com
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com