db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alvin Antony" <Alvin.Ant...@internet.lmu.de>
Subject Antw: beginner Question on Object.save() method.
Date Thu, 27 Feb 2003 10:22:19 GMT
Hi all,

   May be this is a silly Question but I didn't find any document on web
on this. here it is again.

I have a kind of database design, I have Author table, a book table and
a AuthorBook table and there is an n-n relationship with table Author
and Book and each relationship there is a raw on the AuthorBook table.

I am using Struts frame on my project, and the users can login and enter
new books or add existing books to his reference. for this I am setting
the book object on my ActionForm instance. 
the saving process should be like this, the book object should be saved
into the database only if setting the entry  on table AuthorBook is

at the moment,I am doing like this.
on action class
actionForm.setBook(new Book())
user adds the columns of book object by webinterface
on the action class
AuthorBook= new authorBook();

is this makes sense or I am missing something

thanks in advance,

Alvin K. Antony
Ludwig-Maximilians-Universität München
Internet und Virtuelle Hochschule
Oettingenstraße 67
80538 München
Phone: +49 (0)89 2102-5979
Fax: +49 (0)89 2102-5980
Mobile: +49 (0)175 9401175
E-Mail: aantony@lmu.de

Web: http://www.lmu.de/internet/

View raw message