mahammad-fathi commented on issue #7990:
URL: https://github.com/apache/netbeans/issues/7990#issuecomment-2536030009

   As you know, in j2ee programming, when an application server like wildfly is 
selected for the web project, it is expected that the bean management code will 
be generated JPA Session bean by wizard as Like the previous versions of 
NetBeans 17,18 and SessionBeans, this grammar should be produced.  
   
      @PersistenceContext(unitName = "my_persistence_unit")
       private EntityManager em;
   
   But the wizard code   generates a code that manages transactions manually, 
in JPA Controller Package generated JPA Bean like this:
   
        @Resource
       private UserTransaction utx = null;
       @PersistenceUnit(unitName = "my_persistence_unit")
       private EntityManagerFactory emf = null;
   
   And this can be a structural error.
   Thanks for your attention.
   
   


-- 
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

Reply via email to