Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

class BaseDao

 
Ayoub Limouni
Greenhorn
Posts: 19
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ;
 
Volodymyr Lysenko
Ranch Hand
Posts: 511
1
Eclipse IDE Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello!

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.
 
Ayoub Limouni
Greenhorn
Posts: 19
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes i agree with you but when we practice more we become good , so do you have any solution, may be your books can solve my situtation ?
 
Volodymyr Lysenko
Ranch Hand
Posts: 511
1
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic