This mail is probably spam. The original message has been attached
along with this report, so you can recognize or block similar unwanted
mail in future. See http://spamassassin.org/tag/ for more details.
Content preview: 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? [...]
Content analysis details: (8.10 points, 8 required)
NO_REAL_NAME (3.0 points) From: does not include a real name
X_MAILING_LIST (0.0 points) Has a X-Mailing-List header
FOR_FREE (6.0 points) BODY: No such thing as a free lunch (1)
KNOWN_MAILING_LIST (-0.9 points) Email came from some known mailing list software
--- Begin Message ---
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
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel
--- End Message ---