db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/query Criteria.java
Date Sun, 06 Apr 2003 20:13:16 GMT
brj         2003/04/06 13:13:16

  Modified:    src/java/org/apache/ojb/broker/query Criteria.java
  Log:
  fixed problem with parent pointer
  
  Revision  Changes    Path
  1.28      +5 -3      db-ojb/src/java/org/apache/ojb/broker/query/Criteria.java
  
  Index: Criteria.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/query/Criteria.java,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- Criteria.java	24 Mar 2003 20:09:52 -0000	1.27
  +++ Criteria.java	6 Apr 2003 20:13:16 -0000	1.28
  @@ -124,7 +124,7 @@
   	public Criteria(SelectionCriteria aSelectionCriteria)
   	{
   		this();
  -		m_criteria.addElement(aSelectionCriteria);
  +		addSelectionCriteria(aSelectionCriteria);
   	}
   
   	/**
  @@ -675,6 +675,7 @@
   			setEmbraced(false);
   			setType(NONE); // root object
   			m_criteria = pc.getCriteria();
  +            pc.setParentCriteria(this);        
   
   			orderby.addAll(pc._getOrderby());
   			groupby.addAll(pc._getGroupby());
  @@ -830,7 +831,8 @@
   		{
   			setEmbraced(false);
   			setType(NONE); // root object
  -			m_criteria = pc.getCriteria();
  +			m_criteria = pc.getCriteria();  
  +            pc.setParentCriteria(this);        
   
   			orderby.addAll(pc._getOrderby());
   			groupby.addAll(pc._getGroupby());
  
  
  

Mime
View raw message