Thank you. this is perfect. (almost) of course I use only postgresql and there
are differences. like I had to factor out of the migration0 anything dealing
with the erattachment table and create a second migration with:
public class Tutorial1 extends ERAttachmentMigration {
public Tutorial1() {
super("person", "erattachmentid", true);
}
}
and of course postgresql wants to fold all table/entities to lowercase.
now I can work backwards and understand what is happening.
Questions:
I see you set in the properties:
er.attachment.Person.photo.tempFolder = /tmp
er.attachment.Person.photo.maxSize = 2097152
er.attachment.Person.photo.storageType = file
er.attachment.Person.photo.file.overwrite = false
er.attachment.Person.photo.file.filesystemPath = /tmp/erattachment
In the development mode, where is this location. (I can not find the attachment
folder)
In deployment, where is webobjects expecting this to live?
Thank you for this wonderful example.
Ted
--- On Thu, 10/14/10, David Holt <[email protected]> wrote:
> From: David Holt <[email protected]>
> Subject: Re: help with ERAttachments
> To: "Theodore Petrosky" <[email protected]>
> Cc: [email protected]
> Date: Thursday, October 14, 2010, 9:06 PM
> I've uploaded a small demo project
> here
>
> http://wiki.objectstyle.org/confluence/display/WONDER/ERAttachment+Framework
>
> There is a screencast to go with it once I figure out where
> to put it :-)
>
> d
>
> On 2010-10-14, at 8:54 AM, Theodore Petrosky wrote:
>
> > Does anyone have an example of using ERAttachments?
> >
> > I am not using D2W and I just can not figure it out
> from the Practical Wonder podcast.
> >
> > I want to save the attachments to file and then view
> them. That's all.
> >
> > simple little app. but some help would really be
> appreciated.
> >
> > Ted
> >
> >
> >
> > _______________________________________________
> > 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]
>
>
_______________________________________________
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]