components/src/main/java/eu/internetofus/common/components/models/SocialPractice.java
/**
   * Check if two social practices are equivalent by its identifier fields.
   *
   * @param a first model to compare.
   * @param b second model to compare.
   *
   * @return {@code true} if the social practice can be considered equals by its
   *         identifier.
   */
Check if two social practices are equivalent by its identifier fields.
@param a first model to compare.
@param b second model to compare.

@return  true if the social practice can be considered equals by its
identifier.
Check if two social practices are equivalent by its identifier fields . @param a first model to compare . @param b second model to compare . @return true if the social practice can be considered equals by its identifier .
public static boolean compareIds(final SocialPractice a, final SocialPractice b) {
    return a != null && a.id != null && a.id.equals(b.id);
  }
public static boolean compareIds ( final SocialPractice a , final SocialPractice b ) { return a != null && a . id != null && a . id . equals ( b . id ) ; }
Check if two social practices are equivalent by its identifier fields.
Check if two social practices are equivalent by its identifier fields .