Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 405873 | Differences between
and this patch

Collapse All | Expand All

(-)ejb/org/eclipse/jst/jee/model/internal/Ejb3ModelProvider.java (-1 / +6 lines)
Lines 66-75 Link Here
66
			dd.getXSISchemaLocation().put(J2EEConstants.JAVAEE_NS_URL, J2EEConstants.EJB_JAR_SCHEMA_LOC_3_0);
66
			dd.getXSISchemaLocation().put(J2EEConstants.JAVAEE_NS_URL, J2EEConstants.EJB_JAR_SCHEMA_LOC_3_0);
67
			jar.setVersion(J2EEVersionConstants.VERSION_3_0_TEXT);
67
			jar.setVersion(J2EEVersionConstants.VERSION_3_0_TEXT);
68
		}
68
		}
69
		else {
69
		else if(version != null && version.equals(J2EEVersionConstants.VERSION_3_1_TEXT)) {
70
			dd.getXSISchemaLocation().put(J2EEConstants.JAVAEE_NS_URL, J2EEConstants.EJB_JAR_SCHEMA_LOC_3_1);
70
			dd.getXSISchemaLocation().put(J2EEConstants.JAVAEE_NS_URL, J2EEConstants.EJB_JAR_SCHEMA_LOC_3_1);
71
			jar.setVersion(J2EEVersionConstants.VERSION_3_1_TEXT);
71
			jar.setVersion(J2EEVersionConstants.VERSION_3_1_TEXT);
72
		}
72
		}
73
		else {
74
			dd.getXMLNSPrefixMap().put("", J2EEConstants.JAVAEE7_NS_URL);  //$NON-NLS-1$
75
			dd.getXSISchemaLocation().put(J2EEConstants.JAVAEE7_NS_URL, J2EEConstants.EJB_JAR_SCHEMA_LOC_3_2);
76
			jar.setVersion(J2EEVersionConstants.VERSION_3_2_TEXT);
77
		}
73
		dd.setEjbJar(jar);
78
		dd.setEjbJar(jar);
74
		res.getContents().add((EObject) dd);
79
		res.getContents().add((EObject) dd);
75
	}
80
	}

Return to bug 405873