I can't seem to get ERAttachment to migrate first as I keep getting an error:
EORelationship(): cannot find entity named ERAttachment for destination of
relationship attachment in entity
Thanks
James
___
Do not post admin requests to the list.
Sounds like the model is not getting loaded which suggests that it is not on
your classpath for the framework with the EOModel.
On 2013-05-09, at 2:40 PM, James Cicenia wrote:
I can't seem to get ERAttachment to migrate first as I keep getting an error:
EORelationship(): cannot find entity
In your migration, you also need
@Override
public NSArrayERXModelVersion modelDependencies() {
return new NSArrayERXModelVersion(new ERXModelVersion(ERAttachment,
0));
}
That way, it is loaded first so the dependency doesn't fail to resolve.
Ramsey
On May 9, 2013, at 2:42 PM, Chuck
Tripled checked class paths.
Added the modelDependencies() in my migration0
PropertiesFile
er.migration.migrateAtStartup=true
er.migration.createTablesIfNecessary=true
er.migration.modelNames=ERUsers,ERAttachment,ERTaggable,ERAuth,YellaDatabaseModel,ERCoreBL
java.lang.IllegalArgumentException:
if you are certain your model is correct
I recall that I've seen situations where basically the model wasn't loading in
at all, and so just about everything would report errors like -- this can't
find that -- type stuff.
of course, I can't recall how I resolved those things, but your error
I generally have a 0 point WebObjects curse
Whether it is NewProject0, Migration0, Deployment0, SetupWorkstation0... I am
cursed.
Good thought to double check the model. It is Model0 after all.
On May 9, 2013, at 5:00 PM, Jesse Tayler jtay...@oeinc.com wrote:
if you are certain your
Everything seems to check out everywhere with model verifications, class paths
to ERAttachment, etc.
My log seems somewhat normal, nothing stands out saying the model didn't load.
On May 9, 2013, at 5:04 PM, James Cicenia ja...@jimijon.com wrote:
I generally have a 0 point WebObjects
are you loading in a bunch of different models and building cross model
relationships?
if so, it may be related to the order in which they load, but I know not, about
such things...
oh, BTW, as software engineers, we were all cursed and that's why nothing works
the first time through - it