<div dir="ltr"><div>I&#39;m not a big fan of this option.</div><div>I mean, who can we define the present?</div><div>On the same API that will easy:</div><div><ul><li><a href="https://docs.oracle.com/javase/8/docs/api/java/time/YearMonth.html">YearMonth</a><br></li><li><a href="https://docs.oracle.com/javase/8/docs/api/java/time/Year.html">Year</a><br></li><li><a href="https://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html">LocalDate</a><br></li></ul></div><div><br></div><div>But the API that cares about milliseconds? that will complicate, so we need to define a delta.</div><div><br></div><div><ul><li><a href="https://docs.oracle.com/javase/8/docs/api/java/time/LocalDateTime.html">LocalDateTime</a><br></li><li><a href="https://docs.oracle.com/javase/8/docs/api/java/time/LocalTime.html">LocalTime</a><br></li><li><a href="https://docs.oracle.com/javase/8/docs/api/java/time/Instant.html">Instant</a><br></li></ul></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 22, 2017 at 4:15 AM, Marco Molteni <span dir="ltr">&lt;<a href="mailto:moltenma@gmail.com" target="_blank">moltenma@gmail.com</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"><span class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> as they are a bit shorter to use and, more importantly, better to<br> read.</blockquote><div><br></div></span><div>I agree.</div><span class=""><div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> It&#39;s late in the game, but I feel inclined to extract @PastOrPresent<br> and @FutureOrPresent. What do you think?</blockquote><br></div><div><br></div></span><div>Ok for me.<div><div class="h5"><br><div><font color="#500050"><br></font></div><div><br></div><div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 21, 2017 at 7:33 PM, 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:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Just from - very quickly - thinking, no options are coming to my mind.<br>
<br>
Note that we&#39;re about to push the Proposed Final Draft (CR1) with the<br>
separate annotations in a bit. We still an re-consider until the Final<br>
if something strongly speaks against it, but it seemed like the more<br>
likely option to me and the PFD should be out today so it&#39;s up online<br>
by the end of the week.<br>
<br>
I wish the question would have come up earlier so it wouldn&#39;t be such<br>
a rush, but well...<br>
<div class="m_6211921544702714883gmail-HOEnZb"><div class="m_6211921544702714883gmail-h5"><br>
<br>
2017-06-21 19:00 GMT+02:00 Emmanuel Bernard &lt;<a href="mailto:emmanuel@hibernate.org" target="_blank">emmanuel@hibernate.org</a>&gt;:<br>
&gt; My argument against is that @Past / @Future could need additional options: like maybe past per year or month instead of instant time. I understand we do use the type structure to extract that information.<br>
&gt; Is there potential options people can think of around time constraints?<br>
&gt;<br>
&gt; For @Positive/@Negative, we decided there were none.<br>
&gt;<br>
&gt;&gt; On 21 Jun 2017, at 11:50, Gunnar Morling &lt;<a href="mailto:gunnar@hibernate.org" target="_blank">gunnar@hibernate.org</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi all,<br>
&gt;&gt;<br>
&gt;&gt; A colleague of mine reviewing the BV 2.0 changes pointed out an<br>
&gt;&gt; inconsistency in the added/modified constraints.<br>
&gt;&gt;<br>
&gt;&gt; As per the community poll we have now @NegativeOrZero and<br>
&gt;&gt; @PositiveOrZero, whereas we still have the orPresent() option on @Past<br>
&gt;&gt; and @Future. Should it be @PastOrPresent and @FutureOrPresent instead<br>
&gt;&gt; for the sake of consistency?<br>
&gt;&gt;<br>
&gt;&gt; Now one could argue that having only attributes (orPresent(),<br>
&gt;&gt; orZero()) is most consistent with other constraints such as<br>
&gt;&gt; @DigitalMin. But indeed the explicit annotations grew on me over time<br>
&gt;&gt; as they are a bit shorter to use and, more importantly, better to<br>
&gt;&gt; read.<br>
&gt;&gt;<br>
&gt;&gt; It&#39;s late in the game, but I feel inclined to extract @PastOrPresent<br>
&gt;&gt; and @FutureOrPresent. What do you think?<br>
&gt;&gt;<br>
&gt;&gt; Thanks,<br>
&gt;&gt;<br>
&gt;&gt; --Gunnar<br>
&gt;&gt; ______________________________<wbr>_________________<br>
&gt;&gt; beanvalidation-dev mailing list<br>
&gt;&gt; <a href="mailto:beanvalidation-dev@lists.jboss.org" target="_blank">beanvalidation-dev@lists.jboss<wbr>.org</a><br>
&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/beanvalidation-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailma<wbr>n/listinfo/beanvalidation-dev</a><br>
&gt;<br>
&gt;<br>
&gt; ______________________________<wbr>_________________<br>
&gt; beanvalidation-dev mailing list<br>
&gt; <a href="mailto:beanvalidation-dev@lists.jboss.org" target="_blank">beanvalidation-dev@lists.jboss<wbr>.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/beanvalidation-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailma<wbr>n/listinfo/beanvalidation-dev</a><br>
______________________________<wbr>_________________<br>
beanvalidation-dev mailing list<br>
<a href="mailto:beanvalidation-dev@lists.jboss.org" target="_blank">beanvalidation-dev@lists.jboss<wbr>.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/beanvalidation-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailma<wbr>n/listinfo/beanvalidation-dev</a><br>
</div></div></blockquote></div><br></div></div></div></div></div></div>
<br>______________________________<wbr>_________________<br>
beanvalidation-dev mailing list<br>
<a href="mailto:beanvalidation-dev@lists.jboss.org">beanvalidation-dev@lists.<wbr>jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/beanvalidation-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/<wbr>beanvalidation-dev</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr">Otávio Gonçalves de Santana<div><div style="text-align:center"><br><div style="text-align:left"><br></div><div style="text-align:left">twitter: <a href="http://twitter.com/otaviojava" target="_blank">http://twitter.com/otaviojava</a></div><div style="text-align:left">site:     <span style="text-align:center"><font color="#0000ee"><u><a href="http://about.me/otaviojava" target="_blank">http://about.me/otaviojava</a></u></font></span></div><div style="text-align:-webkit-auto"><br></div></div></div></div></div></div></div></div>
</div>