Dave Tolls wrote:This is why I've been trying to get your to think about your database model.
I still don't know what this is modelling.
Anyway,
the general batching, assuming a SQL like:
Note, that assumes an auto-increment subject_id field.
Anyway, using a PreparedStatement called ps:
That assumes you have an array of subjects and an id for the tutor.
Hi Dave,
Can I know in this case, there is no need for me to implement the DAO and DAOImpl already right ?
I have also been trying to study other others are doing and it seems that they can just do it all together in the controller, without the trouble of creating interfaces and then write out all the methods before pulling out the methods blah blah blah...
And it seems that having DAO and DAOImpl in my case just makes the code more difficult to write, especially the controller part when you create a new instance of the manager class where the insertMethod() is being called.
Hope to have your comments on this ...