* EDM Association Name - RULES
* ************************************************************************
*/
public static void build(final JPAEdmAssociationView view, final int count) {
Association association = view.getEdmAssociation();
String associationName = null;
String end1Name = association.getEnd1().getType().getName();
String end2Name = association.getEnd2().getType().getName();
if (end1Name.compareToIgnoreCase(end2Name) > 0) {
associationName = end2Name + UNDERSCORE + end1Name;
} else {
associationName = end1Name + UNDERSCORE + end2Name;
}
if (count > 1) {
associationName = associationName + Integer.toString(count - 1);
}
association.setName(associationName);
}