My opinion, and it is just opinion, is that Account and AccountExample are *sort of* like model classes (although Account suffers from the "anemic domain model" disease). AccountDAO and AccountDAOImpl are service classes - to be used by the controller layer. Ultimately, my view is that these are all utility classes to be used by the real MVC classes in your app.
If you forego iBATIS in the future, then AccountExample will be of little use to you - it is very coupled to iBATIS. Jeff Butler On Wed, Jul 22, 2009 at 11:03 AM, Vinaya Tirikkovalluru<vinaya.tirikkovall...@converge.com> wrote: > Hi, > > I am using iBatis in my application with JSF and Spring. > > > > We are using ABator to generate the objects based on the database objects. > > > > For example…. > > > > Account table will have > > Account.java > > AccountExample.java > > AccountDAO.java > > AccountDAOImpl.java > > I understand that DAO and DAOImpl will be for Model layer. > > Where do Account and AccountExample belong? > > > > Right now I have AccountBean.java in the view layer which is a copy of > Account.java with additional properties. > > Can I move the Account.java and AccountExample.java to the view Layer? > > > > In case I forego iBatis in future… can I still use AccountExample with just > modifying the DAO? Or does AccountExample is specific to Model layer too? > > I think we can have Account.java in view layer as it is a representation of > the table like, DTO. > > > > Any ideas? > > > > Thanks > > Vinaya > > ________________________________ > This electronic message is intended only for the use of the individual(s) or > entity(ies) named above and may contain information which is privileged > and/or confidential. If you are not the intended recipient, be aware that > any disclosure, copying, distribution, dissemination or use of the contents > of this message is prohibited. If you received this message in error, please > notify the sender immediately. --------------------------------------------------------------------- To unsubscribe, e-mail: user-java-unsubscr...@ibatis.apache.org For additional commands, e-mail: user-java-h...@ibatis.apache.org