| Article: |
iBatis DAO | |
| Subject: | Why extend Dao? | |
| Date: | 2005-09-27 06:08:10 | |
| From: | SunilPatil | |
|
Response to: Why extend Dao?
|
||
|
Dao is marker interface. Not sure what do you mean by it should not have any dependency on iBatis.
|
||
Showing messages 1 through 1 of 1.
-
Why extend Dao?
2005-09-30 07:06:37 adamkrieg [View]



I can see times you might want to package your interfaces in a separate package than the actual implementation along with the business objects that you are saving, reading, etc. You'd like that package to be as dependency free as possible. For example, a Client/Server type app over RMI might have a Client package, a Common package and a Server package, with the Dao interface in the Common package to be shared by both the client and the server package. Now, you've introduced a dependency on the iBatis Dao interface which requires us to have the iBatis jar in the client's classpath, when the client could care less that we're using iBatis behind the scenes on the server.
I'm not trolling here, just trying to understand how best to use this technology.