glassfish
  1. glassfish
  2. GLASSFISH-308

New Assertion: The persistence element consists of one or more persistence-unit elements.

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 9.0pe
    • Fix Version/s: 9.0pe
    • Component/s: verifier
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      308

      Description

      The persistence_1_0.xsd, i.e. the schema for persistence.xml file allows a
      persistence.xml to have zero persistence-units. It is defined that way such that
      vendors may like to make developers life easier by defining a default
      persistence-unit on behalf of users. But such an empty persistence.xml is
      non-portable. So GlassFish does not support this kind of ease of use feature.
      Hence GlassFish requires a persistence.xml to have at least one
      persistence-unit. Verifier should have a test for this scenario.
      By,
      Sahoo

        Activity

        Hide
        Bhavanishankar added a comment -

        Checking in LocalStrings.properties;
        /cvs/glassfish/avk/src/tools/com/sun/enterprise/tools/verifier/LocalStrings.properties,v
        <-- LocalStrings.properties
        new revision: 1.67; previous revision: 1.66
        done
        Checking in TestNamesApp.xml;
        /cvs/glassfish/avk/config/verifier/TestNamesApp.xml,v <-- TestNamesApp.xml
        new revision: 1.8; previous revision: 1.7
        done
        Checking in TestNamesAppClient.xml;
        /cvs/glassfish/avk/config/verifier/TestNamesAppClient.xml,v <--
        TestNamesAppClient.xml
        new revision: 1.12; previous revision: 1.11
        done
        Checking in TestNamesEjb.xml;
        /cvs/glassfish/avk/config/verifier/TestNamesEjb.xml,v <-- TestNamesEjb.xml
        new revision: 1.29; previous revision: 1.28
        done
        Checking in TestNamesWeb.xml;
        /cvs/glassfish/avk/config/verifier/TestNamesWeb.xml,v <-- TestNamesWeb.xml
        new revision: 1.12; previous revision: 1.11
        done
        RCS file:
        /cvs/glassfish/avk/src/tools/com/sun/enterprise/tools/verifier/tests/AbstractPersistenceUnitCount.java,v
        done
        Checking in AbstractPersistenceUnitCount.java;
        /cvs/glassfish/avk/src/tools/com/sun/enterprise/tools/verifier/tests/AbstractPersistenceUnitCount.java,v
        <-- AbstractPersistenceUnitCount.java
        initial revision: 1.1
        done
        RCS file:
        /cvs/glassfish/avk/src/tools/com/sun/enterprise/tools/verifier/tests/app/PersistenceUnitCount.java,v
        done
        Checking in app/PersistenceUnitCount.java;
        /cvs/glassfish/avk/src/tools/com/sun/enterprise/tools/verifier/tests/app/PersistenceUnitCount.java,v
        <-- PersistenceUnitCount.java
        initial revision: 1.1
        done
        RCS file:
        /cvs/glassfish/avk/src/tools/com/sun/enterprise/tools/verifier/tests/appclient/PersistenceUnitCount.java,v
        done
        Checking in appclient/PersistenceUnitCount.java;
        /cvs/glassfish/avk/src/tools/com/sun/enterprise/tools/verifier/tests/appclient/PersistenceUnitCount.java,v
        <-- PersistenceUnitCount.java
        initial revision: 1.1
        done
        RCS file:
        /cvs/glassfish/avk/src/tools/com/sun/enterprise/tools/verifier/tests/ejb/ejb30/PersistenceUnitCount.java,v
        done
        Checking in ejb/ejb30/PersistenceUnitCount.java;
        /cvs/glassfish/avk/src/tools/com/sun/enterprise/tools/verifier/tests/ejb/ejb30/PersistenceUnitCount.java,v
        <-- PersistenceUnitCount.java
        initial revision: 1.1
        done
        RCS file:
        /cvs/glassfish/avk/src/tools/com/sun/enterprise/tools/verifier/tests/web/PersistenceUnitCount.java,v
        done
        Checking in web/PersistenceUnitCount.java;
        /cvs/glassfish/avk/src/tools/com/sun/enterprise/tools/verifier/tests/web/PersistenceUnitCount.java,v
        <-- PersistenceUnitCount.java
        initial revision: 1.1
        done

        Show
        Bhavanishankar added a comment - Checking in LocalStrings.properties; /cvs/glassfish/avk/src/tools/com/sun/enterprise/tools/verifier/LocalStrings.properties,v <-- LocalStrings.properties new revision: 1.67; previous revision: 1.66 done Checking in TestNamesApp.xml; /cvs/glassfish/avk/config/verifier/TestNamesApp.xml,v <-- TestNamesApp.xml new revision: 1.8; previous revision: 1.7 done Checking in TestNamesAppClient.xml; /cvs/glassfish/avk/config/verifier/TestNamesAppClient.xml,v <-- TestNamesAppClient.xml new revision: 1.12; previous revision: 1.11 done Checking in TestNamesEjb.xml; /cvs/glassfish/avk/config/verifier/TestNamesEjb.xml,v <-- TestNamesEjb.xml new revision: 1.29; previous revision: 1.28 done Checking in TestNamesWeb.xml; /cvs/glassfish/avk/config/verifier/TestNamesWeb.xml,v <-- TestNamesWeb.xml new revision: 1.12; previous revision: 1.11 done RCS file: /cvs/glassfish/avk/src/tools/com/sun/enterprise/tools/verifier/tests/AbstractPersistenceUnitCount.java,v done Checking in AbstractPersistenceUnitCount.java; /cvs/glassfish/avk/src/tools/com/sun/enterprise/tools/verifier/tests/AbstractPersistenceUnitCount.java,v <-- AbstractPersistenceUnitCount.java initial revision: 1.1 done RCS file: /cvs/glassfish/avk/src/tools/com/sun/enterprise/tools/verifier/tests/app/PersistenceUnitCount.java,v done Checking in app/PersistenceUnitCount.java; /cvs/glassfish/avk/src/tools/com/sun/enterprise/tools/verifier/tests/app/PersistenceUnitCount.java,v <-- PersistenceUnitCount.java initial revision: 1.1 done RCS file: /cvs/glassfish/avk/src/tools/com/sun/enterprise/tools/verifier/tests/appclient/PersistenceUnitCount.java,v done Checking in appclient/PersistenceUnitCount.java; /cvs/glassfish/avk/src/tools/com/sun/enterprise/tools/verifier/tests/appclient/PersistenceUnitCount.java,v <-- PersistenceUnitCount.java initial revision: 1.1 done RCS file: /cvs/glassfish/avk/src/tools/com/sun/enterprise/tools/verifier/tests/ejb/ejb30/PersistenceUnitCount.java,v done Checking in ejb/ejb30/PersistenceUnitCount.java; /cvs/glassfish/avk/src/tools/com/sun/enterprise/tools/verifier/tests/ejb/ejb30/PersistenceUnitCount.java,v <-- PersistenceUnitCount.java initial revision: 1.1 done RCS file: /cvs/glassfish/avk/src/tools/com/sun/enterprise/tools/verifier/tests/web/PersistenceUnitCount.java,v done Checking in web/PersistenceUnitCount.java; /cvs/glassfish/avk/src/tools/com/sun/enterprise/tools/verifier/tests/web/PersistenceUnitCount.java,v <-- PersistenceUnitCount.java initial revision: 1.1 done
        Hide
        Bhavanishankar added a comment -

        Integrated in b40.

        Show
        Bhavanishankar added a comment - Integrated in b40.
        Hide
        Bhavanishankar added a comment -

        Created an attachment (id=102)
        testcase

        Show
        Bhavanishankar added a comment - Created an attachment (id=102) testcase

          People

          • Assignee:
            Bhavanishankar
            Reporter:
            Sanjeeb Sahoo
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: