Re: EO Model (not the standalone EOModeler) in Xcode
Re: EO Model (not the standalone EOModeler) in Xcode
- Subject: Re: EO Model (not the standalone EOModeler) in Xcode
- From: Ray Kiddy <email@hidden>
- Date: Thu, 23 Feb 2006 18:10:15 -0800
On Feb 20, 2006, at 4:44 PM, Denis Stanton wrote:
On 24/11/2005, at 3:10 PM, Ray Kiddy wrote:
In the new EOModeler plugin, you select the entities you wish to have SQL for in the outline view. You can multiply select and so on, same as in any outline view. When you select one or more entities and check one or more boxes in the lower-left of the window, and those options generate SQL for the adaptor and database you are working, you will see SQL in the view.
Hi Ray
I'm making a first attempt to use the 'new' EOModeler functions in XCode 2.2.1. I have a model and I've added it to the project and I have a database. The databse is running and I think I have set the connection dictionary parameters correctly.
Now I'm trying to generate some SQL to add the modelled entities to the database. I cannot for the life of me figure of what I have to do to enable the 'Design / EO Model / Generate SQL Schemas' menu item.
Your old message above referred to selecting an entity in Outline View. I assume that just means opening Resources / Models and selecting the file named xxxx.eomodeld. I can do that, but the 'Generate SQL Schemas' item is not enabled. I have a panel that lists entities and I have diagram of entities. I have tried various selections but the menu item 'Generate SQL Schemas' remains grey. Can you suggest what I'm missing here?
regards
Denis
<x-tad-bigger>Denis Stanton</x-tad-bigger>
<x-tad-bigger><snip>
</x-tad-bigger>
It sounds as though you are actually looking for the feature, Reverse Engineering, which is not in the EOModeler plugin yet.
If you have a database, you can add a new model to your project and add the entities for the tables in the database, and add all the attributes for the columns. This is fairly painful to do manually. If you are trying to get entities into your model for the tables in your database, you should launch the old EOModeler app and do 'New Model' in that.
If you have entities and attributes in your model and the entities have external names and the attributes have column names, then SQL will work. If you have incompletely specified entities, though, you are back in the weeds.
If you are learning this stuff, you will want to use the older documentation. http://developer.apple.com/documentation/WebObjects/UsingEOModeler/index.html
Sorry the new EOModeler plugin is not up to the job, but it is not.
- ray
_______________________________________________
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