Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why so many Abstract classes in Generic DAO

Lucky J Verma
Ranch Hand
Posts: 278
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am first time going through Generic DAO and i dont understand why there are so mant DAO interfaces and abstrac classes..

For eg, I have GenericDAO interface <----implements Abstract class JPAGenericDAO

My DAO Interface IProjectDAO--->extending GenericDAO interface.
My DAO class ProjectDAO --> implements IProjectDAO(which is ok,my interfact) but also extends abstract class JPAGenericDAO(which is already implmenting Generic DAO interface)

Lets say -JPAGenericDAO has extra pagination support,nativequery support so i need my DAO Impl to extend it
But My DAO interface IProjectDAO was nt required to extend it then .

Is nt it redundancy?

I am a beginnner so i might be loosing osme points or concepts.

If there is any tutorial on internet that explains all these things, I would be glad.

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic