From: Anton v. S. <an...@ap...> - 2002-09-02 06:21:11
|
> Would anyone have a use for a new callback interface > > public interface Validatable { > public void validate() throws ValidationException; > } > > that would be called just before saving or updating an object's state? Yes, I would. I used something virtually identical in my home-grown persistence code, before switching to Hibernate, and found it very useful. > (Remember, i'm trying to avoid turning Hibernate into a framework.) I think as long as things like this are small, low-overhead, optional, and useful, they're good. This one seems to qualify... Anton |