db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker MtoNImplementor.java
Date Mon, 15 Nov 2004 18:09:33 GMT
arminw      2004/11/15 10:09:33

  Modified:    src/java/org/apache/ojb/broker MtoNImplementor.java
  Log:
  fix bug with extracted key values
  
  Revision  Changes    Path
  1.9       +6 -3      db-ojb/src/java/org/apache/ojb/broker/MtoNImplementor.java
  
  Index: MtoNImplementor.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/MtoNImplementor.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- MtoNImplementor.java	14 Sep 2004 16:36:14 -0000	1.8
  +++ MtoNImplementor.java	15 Nov 2004 18:09:33 -0000	1.9
  @@ -24,6 +24,7 @@
   import org.apache.ojb.broker.metadata.ClassDescriptor;
   import org.apache.ojb.broker.metadata.CollectionDescriptor;
   import org.apache.ojb.broker.accesslayer.sql.SqlGenerator;
  +import org.apache.ojb.broker.util.BrokerHelper;
   
   /**
    *
  @@ -117,7 +118,8 @@
   	public Object[] getLeftPkValues()
   	{
   		ClassDescriptor leftCld = _pb.getDescriptorRepository().getDescriptorFor(_left.getClass());
  -		return _pb.serviceBrokerHelper().getKeyValues(leftCld, _left);
  +        BrokerHelper bh = _pb.serviceBrokerHelper();
  +		return bh.extractValueArray(bh.getKeyValues(leftCld, _left));
   	}
   
   	/**
  @@ -127,7 +129,8 @@
   	public Object[] getRightPkValues()
   	{
   		ClassDescriptor rightCld = _pb.getDescriptorRepository().getDescriptorFor(_right.getClass());
  -		return _pb.serviceBrokerHelper().getKeyValues(rightCld, _right);
  +        BrokerHelper bh = _pb.serviceBrokerHelper();
  +		return bh.extractValueArray(bh.getKeyValues(rightCld, _right));
   	}
   
       /**
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message