[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jboss-cvs-commits
Subject:    [jboss-cvs] jboss/src/main/org/jboss/ejb/plugins/cmp/jdbc EJBQLToSQL92Compiler.java
From:       Alexey Loubyansky <loubyansky () users ! sourceforge ! net>
Date:       2004-06-29 17:43:02
Message-ID: E1BfMdK-0001tH-Mx () sc8-pr-cvs1 ! sourceforge ! net
[Download RAW message or body]

  User: loubyansky
  Date: 04/06/29 10:43:02

  Modified:    src/main/org/jboss/ejb/plugins/cmp/jdbc
                        EJBQLToSQL92Compiler.java
  Log:
  fixed IS [NOT] NULL comparison for relation-table mapping style.
  
  Revision  Changes    Path
  1.11      +2 -2      jboss/src/main/org/jboss/ejb/plugins/cmp/jdbc/EJBQLToSQL92Compiler.java
  
  Index: EJBQLToSQL92Compiler.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/cmp/jdbc/EJBQLToSQL92Compiler.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- EJBQLToSQL92Compiler.java	24 Jun 2004 13:44:18 -0000	1.10
  +++ EJBQLToSQL92Compiler.java	29 Jun 2004 17:43:01 -0000	1.11
  @@ -31,7 +31,7 @@
    * Compiles EJB-QL and JBossQL into SQL using OUTER and INNER joins.
    *
    * @author <a href="mailto:alex@jboss.org">Alex Loubyansky</a>
  - * @version $Revision: 1.10 $
  + * @version $Revision: 1.11 $
    */
   public final class EJBQLToSQL92Compiler
      implements QLCompiler, JBossQLParserVisitor
  @@ -621,7 +621,7 @@
               final JDBCFieldBridge[] keyFields;
               if(cmrField.getMetaData().getRelationMetaData().isTableMappingStyle())
               {
  -               keyFields = cmrField.getTableKeyFields();
  +               keyFields = cmrField.getRelatedCMRField().getEntity().getPrimaryKeyFields();
               }
               else
               {
  
  
  


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
jboss-cvs-commits mailing list
jboss-cvs-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-cvs-commits
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic