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/test/org/apache/ojb/broker ReferenceTest.java
Date Sat, 22 May 2004 16:23:45 GMT
brj         2004/05/22 09:23:45

  Modified:    src/test/org/apache/ojb repository_junit_reference.xml
               src/test/org/apache/ojb/broker ReferenceTest.java
  Log:
  fixed deepPathQuery problem
  
  Revision  Changes    Path
  1.13      +21 -2     db-ojb/src/test/org/apache/ojb/repository_junit_reference.xml
  
  Index: repository_junit_reference.xml
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/repository_junit_reference.xml,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- repository_junit_reference.xml	3 May 2004 16:13:39 -0000	1.12
  +++ repository_junit_reference.xml	22 May 2004 16:23:45 -0000	1.13
  @@ -446,6 +446,25 @@
           <extent-class class-ref="org.apache.ojb.broker.ReferenceTest$ObjA"/>
           <extent-class class-ref="org.apache.ojb.broker.ReferenceTest$ObjB"/>
           <extent-class class-ref="org.apache.ojb.broker.ReferenceTest$ObjC"/>
  +
  +        <field-descriptor
  +             name="fkId"
  +             column="FK_REF"
  +             primarykey="false"
  +             jdbc-type="INTEGER"
  +            access="anonymous"
  +        />
  +
  +        <reference-descriptor
  +            name="ref"
  +            class-ref="org.apache.ojb.broker.ReferenceTest$RefObject"
  +            proxy="false"
  +            auto-retrieve="true"
  +            auto-update="true"
  +            auto-delete="false">
  +                <foreignkey field-ref="fkId"/>
  +        </reference-descriptor>
  +
       </class-descriptor>
   
       <class-descriptor
  @@ -1455,4 +1474,4 @@
          />
       </class-descriptor>
   
  -<!-- Mapping of classes used in junit tests and tutorials ends here -->
  +<!-- Mapping of classes used in junit tests and tutorials ends here -->
  \ No newline at end of file
  
  
  
  1.17      +1 -6      db-ojb/src/test/org/apache/ojb/broker/ReferenceTest.java
  
  Index: ReferenceTest.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/broker/ReferenceTest.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- ReferenceTest.java	20 May 2004 11:00:13 -0000	1.16
  +++ ReferenceTest.java	22 May 2004 16:23:45 -0000	1.17
  @@ -41,10 +41,6 @@
   
       public void testDeepPathQuery()
       {
  -        /*
  -        this bug should be fixed before final 1.0, because it's a basic
  -        feature to build query including referenced objects
  -        */
           // if(skipKnownIssueProblem("query using path via reference, like 'ref1.ref2.name'"))
return;
           String name = "testDeepPathQuery_" + System.currentTimeMillis();
           RefObject a = new ObjA();
  @@ -90,7 +86,6 @@
           assertEquals(2, result.size());
   
           // test n-level depth
  -        // here the pain starts
           //*****************************************
           crit = new Criteria();
           crit.addEqualTo("ref.ref.name", name+"_third");
  
  
  

---------------------------------------------------------------------
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