Add a lambda-based syntax to the projection DSL

Description

In particular, allow this, to be consistent with the predicate and sort DSL:

  • .asProjection( f -> f.field( "title", String.class ).toProjection() )

  • .composite( Book::new, f -> f.field( "title", String.class ).toProjection() )

That should allow us to simplify a few calls in our tests.

Environment

None
Fixed

Assignee

Yoann Rodière

Reporter

Yoann Rodière

Labels

None

Suitable for new contributors

None

Feedback Requested

None

Components

Fix versions

Priority

Major
Configure