Ahhh! That got rid of this error... but still no tables.

Though, I don't think I have this migration concept down.

I created a migration and named it BlessingsAndToasts1.java

I set in properties:

BlessingsAndToasts.InitialMigrationVersion=1

But it is not being run as no tables are showing up in my database?

Thanks
James


On Sep 16, 2011, at 11:09 AM, David Holt wrote:

> Did you add ERAttachment framework to your application build path too?
> 
> 
> On 2011-09-16, at 7:54 AM, James Cicenia wrote:
> 
>> Hello -
>> 
>> I am now trying to expand my ERModern App to handle attachments.
>> 
>> 1) I have my database model in its own framework. 
>> 2) I added the Attachment Framework and then created a relationship to 
>> ERAttachment.
>> 3) I created a migrations file from my Model.
>> 4) I turn on migrations in the App's properties file
>> 5) I launch the app :
>> 
>> ERROR er.extensions.appserver.ERXApplication  - BlessingsApp failed to start.
>> IllegalArgumentException: EORelationship(): cannot find entity named 
>> ERAttachment for destination of relationship mainImage in entity Author.
>>   at com.webobjects.eoaccess.EORelationship.<init>(EORelationship.java:773)
>>   at com.webobjects.eoaccess.EOEntity.relationships(EOEntity.java:1055)
>> 
>> Shouldn't the migration have created the entity?
>> 
>> What step did I miss? OR... where are the sql scripts? I didn't see them in 
>> the frameworks Resources folder.
>> 
>> Thanks
>> James
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list      ([email protected])
>> Help/Unsubscribe/Update your Subscription:
>> http://lists.apple.com/mailman/options/webobjects-dev/programmingosx%40mac.com
>> 
>> This email sent to [email protected]
> 

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to