reset password
Author Message
CS320stu08
Posts: 22
Posted 17:30 May 28, 2010 |

Dear Dr. Sun,

I have a Revision class which extends AbstractMessage and a revision controller which extends Abstract message controller. I have a composite id for revision. The composite ids are Page class id and revision number. I have used processMessage( revcommand, user, request ) to upload a file where revcommand is the revision class object. My problem is the attached files are stored in the disk and even the files table is populated with the attached file information. But the file id is not stored in my revision table so that I can reference it. Does anyone have any suggestions? 

I am stuck in this for a whole day. Any suggestions will be greatly appreciated. Thanks

CS320stu08
Posts: 22
Posted 18:31 May 28, 2010 |

I have used attachments as a set of attachments in revision class. Thanks

cysun
Posts: 2935
Posted 20:31 May 28, 2010 |

It sounds like the file set in Revision was not saved. Make sure it's mapped in the mapping file.

alomo
Posts: 70
Posted 23:54 May 28, 2010 |
CS320stu08 wrote:

I have used attachments as a set of attachments in revision class. Thanks

It depends on your mapping. You may have file_id in revisions table, or you may have another table that would contain file_id and revision_id.

Last edited by alomo at 23:54 May 28, 2010.