Uploaded image for project: 'JBRULES'
  1. JBRULES
  2. JBRULES-2290

Remove org.drools.persistence.session.MyEntity definition from persistence.xml in drools-persistence-jpa module

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • 5.1.0.M2
    • 5.1.0.M1
    • drools-process
    • None
    • Low

    Description

      This bug occurs when drools-persistence-jpa module is running out of JUnit test.
      Quick description:
      org.drools.persistence.session.MyEntity is defined in src/test/java(test scope), persistence.xml in src/main/resources(production scope) and therefore drools-persistence-jpa module is not usable except for JUnit tests. The solution is to have another persistence.xml (with org.drools.persistence.session.MyEntity definition) in src/test/resources for JUnit tests.

      I propose to create integration Junit tests to cover such production/test configuration bugs.

      Attachments

        Activity

          People

            salaboy@gmail.com Mauricio Salatino (Inactive)
            jtomasov_jira Juraj Tomasov (Inactive)
            Archiver:
            rhn-support-ceverson Clark Everson

            Dates

              Created:
              Updated:
              Resolved:
              Archived:

              Time Tracking

                Estimated:
                Original Estimate - 30 minutes
                30m
                Remaining:
                Remaining Estimate - 30 minutes
                30m
                Logged:
                Time Spent - Not Specified
                Not Specified

                PagerDuty