You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Jair da Silva Ferreira Júnior <j2...@amazon.com.br> on 2003/09/20 18:55:03 UTC

nested fields in collection-descriptor orderby attribute

Hi,
    Does OJB support nested fields in collection-descriptor orderby attributes? For example, suppose I have three classes (ClassA, ClassB and ClassC) I would like to use this in my repository-user.xml descriptor file:
    
    <class-descriptor
      class="ClassA"
      table="class_a">
        .....
      <collection-descriptor
         name="_classBObjects"
         element-class-ref="ClassB"
         orderby="_referenceToClassCObject._name"
         sort="ASC"
      >
           <inverse-foreignkey field-id-ref="2"/>
      </collection-descriptor>
        ....
    </class-descriptor>
    
    Suppose there's a ClassB._name field and there's also a ClassC._name field. In this case OJB mistakenly stores the value of ClassC._name in ClassB._name. Why does it happen? Is it a bug?

    Any help would be appreciated.

Thanks,
    Jair Júnior