Should all domain objects have interfaces?
Hi,
I am currently starting to put together a prototype Struts/Spring/EJB/Hibernate app and am wondering whether the "code to interfaces" best practice applies to domain objects in the same way it does to services and DAOs. I can see the rationale for creating interfaces for all service and DAO classes, I'm just not sure if this holds true for domain objects as well (and, if it does, is it solely to aid testability of non-getter/setter methods on the domain objects?). Any help here would be much appreciated...
Thanks in advance,
Lawrie