private static String generateNonNavigableCMRName(RelationshipRoleMetaData role) { RelationshipRoleMetaData relatedRole = role.getRelatedRoleMetaData(); return relatedRole.getEntityName() + "_" + relatedRole.getCMRFieldName(); }
entity = application.getBeanByEjbName(role.getEntityName()); if(entity == null) throw new DeploymentException("Entity: " + role.getEntityName() + " not found for relation: " + role.getRelationMetaData().getRelationName());