gdamour     2004/11/07 03:04:28

  Modified:    modules/core/src/test/org/openejb/deployment/entity
                        BasicCMPEntityContainerTest.java
  Log:

  GERONIMO-429: Foreign key constraints are not enforced for CMP 2.x EntityBean.
  
  o add a new element to openejb-jar.xml, namely 
enforce-foreign-key-constraints,
  indicating if DML operations related to CMP EJB need to be sorted in order to
  enforce foreign key constraints; and
  o add a new Interceptor in charge of defining the InTxCache bound to a
  TransactionContext, if require.
  
  Revision  Changes    Path
  1.3       +2 -2      
openejb/modules/core/src/test/org/openejb/deployment/entity/BasicCMPEntityContainerTest.java
  
  Index: BasicCMPEntityContainerTest.java
  ===================================================================
  RCS file: 
/home/projects/openejb/scm/openejb/modules/core/src/test/org/openejb/deployment/entity/BasicCMPEntityContainerTest.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- BasicCMPEntityContainerTest.java  5 Nov 2004 19:14:03 -0000       1.2
  +++ BasicCMPEntityContainerTest.java  7 Nov 2004 08:04:28 -0000       1.3
  @@ -454,7 +454,7 @@
           CacheSlot slots[] = new CacheSlot[2];
           slots[0] = new CacheSlot("id", Integer.class, null);
           slots[1] = new CacheSlot("value", String.class, null);
  -        CacheTable cacheTable = new CacheTable("MockEJB", slots, 
createCommand, storeCommand, removeCommand);
  +        CacheTable cacheTable = new CacheTable("MockEJB", slots, null, 
createCommand, storeCommand, removeCommand);
           globalSchema.addCacheTable(cacheTable);
           
           builder.setQueries(new HashMap());
  
  
  

Reply via email to