<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Sep 28, 2016 at 11:10 AM, Gunnar Morling <span dir="ltr">&lt;<a href="mailto:gunnar@hibernate.org" target="_blank">gunnar@hibernate.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>For reference, that&#39;s the question:</div><div><br></div><div>&gt; One of the most common scenarios with date/time types (applies to ranges of all types </div><div>&gt; though) is to have a start and end property for which start must be (sometimes equal or) </div><div>&gt; greater than now and end must be (sometimes equal or) greater than start. Are we not </div><div>&gt; supporting this somehow?</div><div><br></div><div>There is no explicit support for this in the spec. Currently you&#39;d have to write your custom class-level constraint for this sort of cross-field validation (or use something as @ScriptAssert from the RI).</div></div></div></div></blockquote><div><br></div><div>I think my team was using class-level constraints for that before :-(</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>I definitely see how it&#39;s a sore point.</div></div></div></div></blockquote><div><br></div><div>It is. It would be really nice to support this, probably for any pair of Comparables. What do you think?</div><div><br></div><div>Regards,</div><div>Michael</div></div></div></div>