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:04:55 GMT
arminw      2004/11/15 10:04:55

  Modified:    src/java/org/apache/ojb/broker Tag: OJB_1_0_RELEASE
                        MtoNImplementor.java
  Log:
  fix bug with extracted key values
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.7.2.1   +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.7
  retrieving revision 1.7.2.1
  diff -u -r1.7 -r1.7.2.1
  --- MtoNImplementor.java	9 Apr 2004 13:22:30 -0000	1.7
  +++ MtoNImplementor.java	15 Nov 2004 18:04:55 -0000	1.7.2.1
  @@ -23,6 +23,7 @@
   import org.apache.ojb.broker.core.proxy.ProxyHelper;
   import org.apache.ojb.broker.metadata.ClassDescriptor;
   import org.apache.ojb.broker.metadata.CollectionDescriptor;
  +import org.apache.ojb.broker.util.BrokerHelper;
   
   /**
    *
  @@ -112,7 +113,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));
   	}
   
   	/**
  @@ -122,7 +124,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