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

Generated JPA Controller is empty if persistence.xml is edited for container use

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 11.2
    • Fix Version/s: Next
    • Component/s: None
    • Labels:
      None
    • Environment:
      Win 10, Java 11, MySQL 8, Payara 5.194

      Description

      When entities are created so is the persistence.xml file. If this xml file is edited for use in a container such as Payara then calling upon NB to create JPA Controllers from Entities results in empty classes. As the generated controller needs nothing, as far as I can tell, from the persistence.xml then this behaviour does not make sense.

      This is Issue #3 in the document. Issue #2 shows what the persistence.xml should be changed to for containers.

      Here is the document:

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

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated: