I want to save client side form-data which were entered by user to database.I have a pojo which represent exact table structure and this pojo is used to save the data into database.
What are best design pattern suitable for this.So I don�t have any dependency between any layers
posted 9 years ago
Made your pojo a DTO and pass it to a DAO object. This is DAO pattern. It hides your lower level database access details within the DAO object, hence higher level layers do not have dependency on your database details.