Joel Trunick <joel.trunick <at> webifysolutions.com> writes: > Why won't validation occur on the whole object? > > You could use an exception strategy that collects exceptions rather than > terminating on the first one, for instance. This is useful anyway if you > have any batch processing accessing your domain model as well.
Suppose that your object contains a period consists of two Date objects, how to check if the end date is later than the start date? Are you saying in the setEndDate() method of your object you will perform the checking and buffer the exception if it is invalid, but you won't do the same in setStartDate()? -- Author of an e-Book for learning Tapestry (http://www.agileskills2.org/EWDT) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
