Armin:
        I implement a 1:n relation. Just like a object A has a collection
attribute bs ,the element class B in the collection. The repository_user
file define as:
    <class-descriptor isolation-level="optimistic" class="A" table="A">
      <field-descriptor name="OID" column="OID" jdbc-type="CHAR"
primarykey="true" autoincrement="true" nullable="false"/>
      <field-descriptor name="objectVersion" column="objectVersion"
jdbc-type="INTEGER" locking="true"/>
      <collection-descriptor name="bs"
collection-class="org.apache.ojb.odmg.collections.DListImpl_2"
element-class-ref="B" auto-delete="true" proxy="true">
       <inverse-foreignkey field-ref="containerOID"/>
      </collection-descriptor>
   </class-descriptor>

    <class-descriptor isolation-level="optimistic" class="B" table="B">
              <field-descriptor name="OID" column="OID" jdbc-type="CHAR"
primarykey="true" autoincrement="true" nullable="false"/>
                <field-descriptor name="objectVersion"
column="objectVersion" jdbc-type="INTEGER" locking="true"/>
              <field-descriptor name="containerOID" column="containerOID"
jdbc-type="CHAR" nullable="false"/>
              <field-descriptor name="definitionOID" column="definitionOID"
jdbc-type="CHAR" nullable="false"/>
              <reference-descriptor name="container" class-ref="A">
                 <foreignkey field-ref="containerOID"/>
              </reference-descriptor>
              <reference-descriptor name="definitionObject" class-ref="C">
                 <foreignkey field-ref="definitionOID"/>
              </reference-descriptor>
   </class-descriptor>
    <class-descriptor isolation-level="optimistic" class="C" table="C">
                                                        :
                                                        :
    </class-descriptor>

    When I use old DListImpl, it works. I trace a profile of MSSQL
server.When I fetch a A object from DB, I see the sql command that OJB does
not fetch C, and
CollectionProxy of bs attribute isLoaded() return false. I run this with
ojb-1.0-rc3.
       When I use DListImpl_2 to run this case, I found the sql command to
fetch C class, and CollectionProxy of bs attribute isLoaded() return true.
I just found A object, and
do not operate any method of it.

    Do you need sql command that set
org.apache.ojb.broker.accesslayer.sql.SqlGeneratorDefaultImpl.LogLevel=DEBUG
to log command?

    Thank you your answer.
    regards,
    Dogie
> Hi,
>
> can you post some more info, stack trace?
> What does not work store/query/delete...?
>
> > ps.I have changed the
> collection-class="org.apache.ojb.odmg.collections.DListImpl_2".
>
> Does it work when you use old DListImpl?
>
> regards,
> Armin
>
> 蔡博至 wrote:
>
> > Hi!
> >     I use the Jakarta OJB 1.0-rc3 to implement my AP successfully, but
when I try to upgrade rc3 -> rc5, I get some problem.
> > The hugest problem is that the collection attribute is set proxy="ture"
can not work. Dose anybody know why it is? How can
> > I do any change to let it work again??
> >     Please help me , thanks a lot.
> >
> > ps.I have changed the
collection-class="org.apache.ojb.odmg.collections.DListImpl_2".
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to