On Friday, November 30, 2012 1:49:57 PM UTC+1, Thomas Mueller wrote: > Hi, > > I think it's worth to revive it once Java 8 is available, using closures > for conditions. So instead of: >
Now that Java 8 is out, is it time to resurect? > Product p = new Product(); > List<Product> restock = db.from(p). > where(p.unitsInStock).is(0). > select(); > > it would be: > > List<Product> restock = db. > select(Person p -> p.unitsInStock == 0); > This surely looks much better, but I can imagine that the old ugly expression is much easier to transform into a prepared statement, isn't it? -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/h2-database. For more options, visit https://groups.google.com/d/optout.
