Is it okay for the same DAO to have multiple sql statements in it? Say one for a query call and then another for an update call? For example: can OrderDAO be used to retrieve orders and to update orders?
posted 13 years ago
that's the sense of an DAO. Put all JDBC/SQL stuff for an Order into the OrderDAO.