From: Yaron Z. <ya...@id...> - 2002-09-03 15:00:21
|
I'm voting for this callback -----Original Message----- From: Gavin_King/Cirrus%CI...@ci... [mailto:Gavin_King/Cirrus%CI...@ci...] Sent: Monday, September 02, 2002 5:59 AM To: hib...@li... Subject: [Hibernate-devel] Validation interface? 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? The object wouldn't be allowed to adjust it's own state from inside validate(), just throw an exception if it's invariants were violated. I've wondered about this a few times, but it never passed the bloat test really.... (Remember, i'm trying to avoid turning Hibernate into a framework.) However, if its a thing that would be used its sooo easy to implement. ------------------------------------------------------- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 _______________________________________________ Hibernate-devel mailing list Hib...@li... https://lists.sourceforge.net/lists/listinfo/hibernate-devel |