asbachb commented on code in PR #6129:
URL: https://github.com/apache/netbeans/pull/6129#discussion_r1244881872
##########
java/j2ee.persistence/src/org/netbeans/modules/j2ee/persistence/wizard/entity/EntityWizard.java:
##########
@@ -135,17 +138,26 @@ public void initialize(WizardDescriptor wizardDescriptor)
{
@Override
public Set instantiate() throws IOException {
+ Project project = Templates.getProject(wiz);
+
+ JPAModuleInfo moduleInfo =
project.getLookup().lookup(JPAModuleInfo.class);
+ Double webXmlVersion = Double.parseDouble(moduleInfo.getVersion());
+
+ String enterprisePrefix = "jakarta";
+ if (webXmlVersion < JAKARTA_EE_9_WEB_APP_DD_VERSION) {
Review Comment:
I double checked with an EJB Module project which you're right does not
match the logic.
Replaced it with a classpath check as suggested.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists