gdamour     2005/02/20 10:44:51

  Modified:    modules/openejb-builder/src/test/org/openejb/deployment
                        CMPEntityBuilderTest.java
  Log:

  o Add a db-syntax-factory optional element. It corresponds to a database
  syntax factory.
  
  This is used to support discrepencies between various DB and JDBC providers.
  
  For instance, the CONCAT and SUBSTRING functions need to be escaped in the
  case of Derby and not in the case of Oracle.
  
  The default syntax is set to Derby.
  
  o Add a ejb-ql-compiler-factory optional element. It corresponds to the
  strategy used to compile EJB QL queries.
  
  This is used to support discrepencies between the operations supported by
  various DB providers.
  
  For instance, a SELECT OBJECT(A) FROM AASN AS A, IN(A.toB) B may produce
  two SQL queries: one with an INNER JOIN if supported by the DB or a CROSS JOIN
  with the relevant conditions appended to the WHERE clause.
  
  The default compiler strategy is set to Derby.
  
  o PrimaryKeyGenerator.getNextPrimaryKey() throws now a
  DuplicateIdentityException; update accordingly the code.
  
  Revision  Changes    Path
  1.9       +4 -4      
openejb/modules/openejb-builder/src/test/org/openejb/deployment/CMPEntityBuilderTest.java
  
  Index: CMPEntityBuilderTest.java
  ===================================================================
  RCS file: 
/home/projects/openejb/scm/openejb/modules/openejb-builder/src/test/org/openejb/deployment/CMPEntityBuilderTest.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- CMPEntityBuilderTest.java 19 Feb 2005 18:24:43 -0000      1.8
  +++ CMPEntityBuilderTest.java 20 Feb 2005 15:44:51 -0000      1.9
  @@ -121,7 +121,7 @@
           
           GlobalSchema globalSchema = new GlobalSchema("Test");
           EJBSchema ejbSchema = new EJBSchema("Test");
  -        SQL92Schema sqlSchema = new SQL92Schema("Test", null);
  +        SQL92Schema sqlSchema = new SQL92Schema("Test", null, null);
           
           File tempDir = DeploymentUtil.createTempDir();
           try {
  @@ -166,7 +166,7 @@
           
           GlobalSchema globalSchema = new GlobalSchema("Test");
           EJBSchema ejbSchema = new EJBSchema("Test");
  -        SQL92Schema sqlSchema = new SQL92Schema("Test", null);
  +        SQL92Schema sqlSchema = new SQL92Schema("Test", null, null);
   
           File tempDir = DeploymentUtil.createTempDir();
           try {
  @@ -212,7 +212,7 @@
           
           GlobalSchema globalSchema = new GlobalSchema("Test");
           EJBSchema ejbSchema = new EJBSchema("Test");
  -        SQL92Schema sqlSchema = new SQL92Schema("Test", null);
  +        SQL92Schema sqlSchema = new SQL92Schema("Test", null, null);
           
           File tempDir = DeploymentUtil.createTempDir();
           try {
  
  
  

Reply via email to