Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-3893

New Option to Indicate that the persistence.xml is for a container

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 11.2
    • Next
    • None
    • None
    • Win 10, Java 11, MySQL 8, Payara 5.194

    Description

      When entities are generated you have the option of having a persistence.xml file created. This xml file is meant for a non-container implementation of the JPA such as for a desktop application. I'd like to suggest that there should be the option of creating this file for a container. 

      Some of the information for this xml needs to come from the glassfish-resources.xml file or equivalent for other application servers. Therefore generating this file at the same time may also be an option.

      In my document under Issue #2 there is an example of a persistence.xml as created by NetBeans and another xml that shows what it might be for a container.

       

      The document can be found at:

      https://github.com/omniprof/NetbeansJPAControllerIssues/blob/master/JPAControllerFromEntitiesRevision.pdf

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            omniprof Kenneth Fogel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: