/**
* Extract the implied property name from an Implies or OneToMany annotation.
*/
private String getImpliedPropertyName(Method m) {
SparseCollection implies = m.getAnnotation(SparseCollection.class);
if (implies != null) {
// Treat the default value of an empty string as just a breakpoint, without implication
return implies.value().isEmpty() ? null : implies.value();
}
for (Annotation a : m.getAnnotations()) {
// Looking for a specific type to call a method on, so don't use hasAnnotation() method
if ("javax.persistence.OneToMany".equals(a.annotationType().getName())) {