code: public Collection<CascadeType> getCascades(PluralAttribute<?, ?, ?> attribute) {
          if (attribute.getJavaMember() instanceof AccessibleObject) {
              AccessibleObject accessibleObject = (AccessibleObject) attribute.getJavaMember();
              OneToMany oneToMany = accessibleObject.getAnnotation(OneToMany.class);
              if (oneToMany != null) {
                  return newArrayList(oneToMany.cascade());
              }
              ManyToMany manyToMany = accessibleObject.getAnnotation(ManyToMany.class);
              if (manyToMany != null) {
                  return newArrayList(manyToMany.cascade());
              }
          }
          return newArrayList();
      }
docs: Retrieves cascade from metamodel attribute
  
  @param attribute given pluaral attribute
  @return an empty collection if no jpa relation annotation can be found.