gdamour     2005/02/20 10:44:54

  Modified:    
modules/openejb-builder/src/test/org/openejb/deployment/entity/cmp/cmr
                        AbstractCMRTest.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.13      +3 -2      
openejb/modules/openejb-builder/src/test/org/openejb/deployment/entity/cmp/cmr/AbstractCMRTest.java
  
  Index: AbstractCMRTest.java
  ===================================================================
  RCS file: 
/home/projects/openejb/scm/openejb/modules/openejb-builder/src/test/org/openejb/deployment/entity/cmp/cmr/AbstractCMRTest.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- AbstractCMRTest.java      19 Feb 2005 20:22:59 -0000      1.12
  +++ AbstractCMRTest.java      20 Feb 2005 15:44:53 -0000      1.13
  @@ -94,6 +94,7 @@
   import org.tranql.ejb.EJB;
   import org.tranql.ejb.EJBSchema;
   import org.tranql.ejb.TransactionManagerDelegate;
  +import org.tranql.ejbqlcompiler.DerbyEJBQLCompilerFactory;
   import org.tranql.sql.sql92.SQL92Schema;
   
   /**
  @@ -163,7 +164,7 @@
           tmDelegate.setTransactionManager(tm);
   
           ejbSchema = new EJBSchema("Mock");
  -        sqlSchema = new SQL92Schema("Mock", ds);
  +        sqlSchema = new SQL92Schema("Mock", ds, new 
DerbyEJBQLCompilerFactory());
           cacheSchema = new GlobalSchema("Mock");
   
           File ejbJarFile = new File(basedir, getEjbJarDD());
  
  
  

Reply via email to