Uploaded image for project: 'Errai'
  1. Errai
  2. ERRAI-331

Errai JPA code generator should not use persistence.xml

    Details

    • Type: Feature Request
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 2.1.0.CR1
    • Fix Version/s: 2.2.0.CR1
    • Component/s: None
    • Labels:
      None

      Description

      We currently require a persistence.xml in projects that use Errai JPA, because we get help from Hibernate at compile time, and we launch Hibernate in Java SE mode. JPA2 says providers running in the SE environment must provide an explicit persistence.xml, whereas providers running in the EE environment can omit persistence.xml and rely on classpath scanning.

      We already have the ability to scan for @Entity annotations, so we could construct a persistence.xml in cases when we can't find one.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                jfuerth Jonathan Fuerth
                Reporter:
                jfuerth Jonathan Fuerth
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: