Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-dev] Proposed patch for bug 265512 --- Need to add test model in JPA to test Oracle Custom Features

A patch for the bug is available for review.
 
Change Summary:
- add customfeatures test model under trunk\foundation\eclipselink.extension.oracle.test, this model tests oracle specific features like NChar, XMLType, Store Procedure ref Cursor and Native Batch Writing in JPA, the model can run inside & outside container, for inside container, it only runs against WebLogic.

detailed changes:
  • modify jpa/eclipselink.jpa.test/weblogic.xml :
    • add oci datasource config
    • copy xdb.jar to domain/lib
  • modify jpa/eclipselink.jpa.test/build.properties:
    • add "eclipselink.customfeatures.model", "eclipselink.jpa.oracle", "oracle.xdb.lib" and "oracle.xmlparserv2.lib" properties
  • modify jpa/eclipselink.jpa.test/build.xml
    • add "isWebLogic" and "is.weblogic.and.oracle" condition properties
    • add xdb..jar, xmlparserv2.jar, customfeatures model jar to classpath when running the model outside container
    • add "DB_URL" parameter for "run-test" target, because only this model needs to run against oci driver
  • add jpa/eclipselink.jpa.test/resource/eclipselink-customfeatures-model/server/persistence.xml
  • modify foundation/eclipselink.extension.oracle.test/build.xml,
    • "package" target, "clean" target for build and cleaning customfeatures model
  • add foundation/eclipselink.extension.oracle.test/resource/customfeatures/persistence.xml
  • add trunk/foundation/eclipselink.extension.oracle.test/src/org/eclipse/persistence/testing/tests/OracleJPACustomFeaturesTestSuite.java for invoke the model running outside container
  • add test model to trunk/foundation/eclipselink.extension.oracle.test/src/org/eclipse/persistence/testing/models/jpa/customfeatures
  • add tests to trunk/foundation/eclipselink.extension.oracle.test/src/org/eclipse/persistence/testing/tests/jpa/customfeatures
Thanks,
Yiping


Back to the top