|
handling of torque...: msg#00012jakarta.turbine.torque.user
Hi folks! I have the following problem: My turbine-based webapplication uses torque to get some database-records as objects. These objects are stored in a session since i need them in several forms without saving them. All objects should be saved into the database when i click the general save-button. Therefore i have written a EventAction-class in which the main-object (picture) is stored by the torque save function. This works well, but the related database-table-objects (picture2category) doesn´t save everytime its content if the db-table already contents any of these objects (especially if i removed some picture2category-objects in my session). I tried deleting the old content of the related table before saving, but it didn´t work. I also tried without success to excecute the torque-function save for every relative object (picture2category). If i add something to the related table through the torque-function (picture.addPictureToCategoryAssociation(PictureToCategory pic2cat)), it works and saves the changes. It only occurs when something should be removed. Torque doesn´t provide an explicit function for pushing an object out, therefore i delete the single objects by removing an element of the java-arraylist, which i get by a torque-function (getPictureToCategories()) with the java-function remove. The strange thing is, that removing these data-records worked until i had changed something i don´t remember. Although i tried not to go too deep in the details, i would like to know if my method of working with torque is okay. I must admit that i am new to torque and i don´t know if i am following the correct ideas or if this is the cause for my remove-problem. thanks Steve |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | handling of torque...: 00012, Stevan Gajic |
|---|---|
| Next by Date: | Re: handling of torque...: 00012, Saravana Krishnan |
| Previous by Thread: | handling of torque...i: 00012, Stevan Gajic |
| Next by Thread: | Re: handling of torque...: 00012, Saravana Krishnan |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |