ammulder    2005/07/07 17:37:07

  Modified:    modules/core/src/java/org/openejb/entity/cmp
                        CMPCreateMethod.java
  Log:

  Add option to configure PK generation via direct schema elements instead
    of only using references to GBeans.
  The old style configuration is still supported, though the syntax is
    different (if you want to use a GBean reference, put it in a
    key-generator/custom-generator element)
  There's also a placeholder commented out of the XML Schema for key
    generation using IDs inserted directly into the target table by the
    database (using AUTO_INCREMENT columns or triggers) though that
    requires additional features from TranQL before it works.
  
  Revision  Changes    Path
  1.15      +4 -3      
openejb/modules/core/src/java/org/openejb/entity/cmp/CMPCreateMethod.java
  
  Index: CMPCreateMethod.java
  ===================================================================
  RCS file: 
/home/projects/openejb/scm/openejb/modules/core/src/java/org/openejb/entity/cmp/CMPCreateMethod.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- CMPCreateMethod.java      21 Jun 2005 21:16:58 -0000      1.14
  +++ CMPCreateMethod.java      7 Jul 2005 21:37:06 -0000       1.15
  @@ -72,6 +72,7 @@
   import org.tranql.identity.IdentityDefiner;
   import org.tranql.identity.IdentityTransform;
   import org.tranql.pkgenerator.PrimaryKeyGeneratorDelegate;
  +import org.tranql.pkgenerator.PrimaryKeyGenerator;
   
   /**
    *
  @@ -85,7 +86,7 @@
       private final MethodSignature postCreateSignature;
       private final CacheTable cacheTable;
       private final IdentityDefiner identityDefiner;
  -    private final PrimaryKeyGeneratorDelegate keyGenerator;
  +    private final PrimaryKeyGenerator keyGenerator;
       private final IdentityTransform primaryKeyTransform;
       private final IdentityTransform localProxyTransform;
       private final IdentityTransform remoteProxyTransform;
  @@ -100,7 +101,7 @@
               MethodSignature postCreateSignature,
               CacheTable cacheTable,
               IdentityDefiner identityDefiner,
  -            PrimaryKeyGeneratorDelegate keyGenerator,
  +            PrimaryKeyGenerator keyGenerator,
               IdentityTransform primaryKeyTransform,
               IdentityTransform localProxyTransform,
               IdentityTransform remoteProxyTransform) {
  
  
  

Reply via email to