• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

class BaseDao

 
Greenhorn
Posts: 19
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ;
 
Ranch Hand
Posts: 514
1
Eclipse IDE Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?
 
Bin Smith
Ranch Hand
Posts: 514
1
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic