Adding EOModels embedded in an external framework to an existing project
Adding EOModels embedded in an external framework to an existing project
- Subject: Adding EOModels embedded in an external framework to an existing project
- From: Peter <email@hidden>
- Date: Tue, 11 Jul 2006 13:59:15 -0400
Hi,
I have read some of the past post on adding an EOModel to an existing
WO project. It seems like much of the problems with adding a model to
the project have been no adding it as "Create Folder References".
I have a slightly different problem. I have an EOModel that is part
of a separate framework. I need to use some of the entities in that
EOModel (and business logic in the related java classes in the
framework) in an existing project.
I can add the framework to the project without a problem (application
server target) and compile my project successfully. However, when
running the project, I do not see my the model I added (via the
external framework).
I am checking this using the following (EOModelGroup.defaultGroup()).models().
As a test I created a new WO Application project and added the
framework in the wizard setup. After I add the framework, the next
part of the wizard asks to Add EOModels. (My model appears). When I
run the test project, I can see the model and all works fine.
Further testing, I removed the framework from the project, cleaned,
re-indexed and re-ran the project. As I expected, the model did not
show. However, when I attempted to re-add the framework the project,
I could no longer get it to show up again.
I am just not sure what "magic" happens during the wizard setup for
the project and how I can manually add a framework (with an EOModel)
to a project. How does a WO Application "know" what models it "has"
(i.e. where in the project is this information stored)? I have
searched the targets, and project files without luck.
Thanks,
Pete
_______________________________________________
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