Is there a convenient way to automatically validate maximum field lengths based on the length of a field in an underlying DB. (e.g. VARCHAR(25)). I'm using Hibernate so it's not clear to me how I...