Method references in annotations?
Paul Benedict
pbenedict at apache.org
Mon Aug 1 08:30:20 PDT 2011
Project Lambda is introducing method references. That's a feature I
desire because one of my gripes with JPA (or any annotations that
relate to properties) is the necessity to spell-out the property
names.
Example:
@OneToMany(cascade=ALL, mappedBy="customer")
Would something like this now be possible (provided the annotation was
refactored)?
@OneToMany(cascade=ALL, mappedBy=#SomeClass.getCustomer)
Paul
More information about the lambda-dev
mailing list