<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div><div>On 29 Jul 2014, at 18:01, Richard Fanning &lt;<a href="mailto:Richard.Fanning@FINEOS.com">Richard.Fanning@FINEOS.com</a>&gt; wrote:</div><blockquote type="cite"><div lang="EN-IE" link="blue" vlink="purple" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div class="WordSection1" style="page: WordSection1;"><br><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(99, 36, 35);">Another scenario in our company where we thought this feature might be useful was again around the area of defaults. So for example a String property on an @Entity would not need to define any @Size but a sensible default (255) would apply akin to JPA providers [1]<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(99, 36, 35);">&nbsp;</span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(99, 36, 35);">But we’d still like to get ConstraintViolations during validation phase rather than some JPA/DB errors complaining about the strings length.</span></div></div></div></blockquote><br></div><div>Actually, I’ve been trying to convince the JPA EG to do the opposite. The @Column(lengh) would be guessed by @Size(max=200) to avoid repetition. But I have had some resistance on this approach.</div></body></html>