Hello every one, i've a question about a BaseDao class (jdbc) ,that Access of course the data base, and be inherited by other classes (have the same fields ) that need to access to the data base . the question is how to do it ?
I've 2 classes Category and Authenticity that must extend BaseDao and this contains jdbc code , the 2 classes have the same structure , so to not write the code twice BaseDao i've to put it on it ;
I think you need good book that will teach you how to get started with technology you choose(spring,hibernate,jsf,jdbc)!
At least this was my way to start with spring + hibernate.
I think without money it is very difficult to study smth. But this is my way.
I myself talk of books for technologies I studied.
For Spring 3 I covered Pro Spring 3, Spring Persistence with Hibernate by Paul Tepper Fisher,Just Spring Data Access by Madhusudhan Konda.
Also many tutorials talking of spring and hibernate.
How to do base dao with extended daos in spring and hibernate is best demonstrated in Spring Persistence with Hibernate, but this book is old.
But you can check its source code.