Is there still a legacy issue in that many ORMs (including the version of
Grails I'm using) tend to use java.sql.Date which has the benefit of
extending java.util.Date?
Is there Hibernate support for java.time yet?
On Thu, Jun 8, 2017 at 8:07 PM, Joe Wolf wrote:
> +1 for me. I think it's a good
Default assignment?
On Mon, Nov 28, 2016 at 4:30 PM, Jeff Lowery
wrote:
> Elsignment?
>
> — Jeff
>
>
>
> On Nov 23, 2016, at 4:30 PM, Daniel Sun wrote:
>
> I like the nickname "Elvis assignment" for ?=
>
> Cheers,
> Daniel.Sun
>
>
>
> 在 2016年11月24日 04:18,"Guillaume Laforge [via Groovy]" email
an false. I guess that makes
> sense. The cases that surprise me the most are these:
>
> foo = '' // empty string
> foo = foo ?: 'goodbye' // foo == 'goodbye'
>
> and
>
> foo = ' ' // single space
> foo = foo ?: 'goodbye'
Well, you seem to know what's happening.
sleepFor = sleepFor > 0 ?: 10
is equivalent to:
sleepFor = (sleepFor > 0 ) ?: 10
So the entire expression (sleepFor > 0) is evaluated and, if found to be
true, returned as the result of the elvis expression.
Elvis operator like this:
Z = X ?: Default
is eq