Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Why so many Abstract classes in Generic DAO  RSS feed

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.

It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!