Hi,
I have a partitioning question that I'd some feedback on.
Our app uses Spring, Struts and Hibernate, and I'd like to keep our domain model (the Hibernate POJO's) from having any dependencies on our DAO's (that wrap Hibernate). However, consider a domain object that has the business rule that a certain property must be unique. How can this be implemented so that the domain object enforces this business rule, but without having to directly call a DAO in the domain object to enforce it?
many thanks,
drc


Reply With Quote