* @param serviceContainedClass TODO
* @param migrator TODO
* @return a map linking each property to all its cascading informations
*/
public static Map<Property, Collection<CascadeType>> getBeanPropertiesFor(PropertyProvider provider, Class<?> searchedClass, Migrator migrator) {
Map<Property, Collection<CascadeType>> returned = new TreeMap<Property, Collection<CascadeType>>(new ComparePropertyByNameAndDeclaringClass());
Property[] properties = PropertyProviderUtils.getAllProperties(provider, searchedClass);
for (Property p : properties) {
returned.put(p, extractCascadeOfJPAAnnotations(p));
}
// And, if class is the contained one, add the (potential) Migrator