aspose file tools*
The moose likes JDBC and the fly likes class BaseDao Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "class BaseDao" Watch "class BaseDao" New topic
Author

class BaseDao

Ayoub Limouni
Greenhorn

Joined: Jul 12, 2012
Posts: 19

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 Levytskyi
Ranch Hand

Joined: Mar 29, 2012
Posts: 505
    
    1

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.


True person is moral, false is right!
Ayoub Limouni
Greenhorn

Joined: Jul 12, 2012
Posts: 19

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 Levytskyi
Ranch Hand

Joined: Mar 29, 2012
Posts: 505
    
    1

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: class BaseDao