• 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: Two EOModel with the Same Entity Name
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Two EOModel with the Same Entity Name


  • Subject: Re: Two EOModel with the Same Entity Name
  • From: Chuck Hill <email@hidden>
  • Date: Wed, 21 Sep 2005 15:26:44 -0700

EOF prohibits there being two entities with the same name in the same EOModelGroup. You will have to rename one of the entities.

Chuck


On Sep 21, 2005, at 3:17 PM, Xia, Wen wrote:

I have two EOModels:
Db2OrgMaint.eomodeld: connects to a DB2 database
OracleOrgMaint.eomodeld: connects to an Oracle database

In both EOModels, there are table named "ORGANIZATION". I added both EOModels to my project. But when I tried to open model OracleOrgMaint from Xcode, I got the following error message:

Exception: NSInvalidArgumentException
Reason: <EOModelGroup: 0x1330c250 (
(OracleOrgMaint, "/Users/fiwxia/WOApps/OrgMaintenance/ OracleOrgMaint.eomodeld")
)> addModel: -- The model 'Db2OrgMaint' has entity name conflicts with (Organization) in the model group.


I can still open model Db2OrgMaint probably because I added it to the project first.

I wonder anyone has the same problem? How to resolve it when two model have the same entity name?

Appreciate your advice.

Wen

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


This email sent to email@hidden

--
Coming in 2006 - an introduction to web applications using WebObjects and Xcode http://www.global-village.net/wointro


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




_______________________________________________ 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: 
 >Two EOModel with the Same Entity Name (From: "Xia, Wen" <email@hidden>)

  • Prev by Date: Two EOModel with the Same Entity Name
  • Next by Date: Re: Hang in WOMailDelivery.sendEmail
  • Previous by thread: Two EOModel with the Same Entity Name
  • Next by thread: RE: JDBC error w/ WebObjects
  • Index(es):
    • Date
    • Thread