class responsibilities in jdbc
If writing a program for jdbc access to a database I have written a class for each table. I have a class for the gui and tableEntry classes for each table.
(I think one improvement would be an abstract Entry class with inheriting classes for each table).
The table classes each have responisbility for saving themselves to the dbe.
Can anyone recommend an article (at beginner / intermediate level) that covers this particular modelling situation?
I have had a good deal of difficulty finding advice abt OO approaches to this in the sense of what responsibilities to assign to which classes.
Many links promise much but deliver little. A particularly good example of an article failing to deliver is here http://www.databasejournal.com/sqletc/article.php/1431601 where the writer promises ...
"So to conclude this tutorial on web databases, we will take a walk through JDBC technology and present an actual Java GUI that uses JDBC to connect to the datasource we installed for the"
and signally fails to do anything of the sort.
Brian

