On Wed, 21 Jan 2004, Weaver, Scott wrote:

> Hi All,
> 
> I have never used the ODMG specific collection classes before.  That being
> said, I just started using DList in some of my mappings.  
> 
> Example:
> 
> <collection-descriptor
>          name="portlets"
>  
> element-class-ref="org.apache.jetspeed.om.common.portlet.PortletDefinitionCo
> mposite"
>          collection-class="org.apache.ojb.odmg.collections.DListImpl"
>       >
>          <inverse-foreignkey field-ref="appId"/>
> </collection-descriptor>
> 
> However, when I do specify the DListImpl, I get this error when updating to
> the DB:
> 
> Could not obtain next object: Can't build new sequence: Table not found:
> OJB_HL_SEQ in statement [SELECT
> A0.VERSION,A0.GRAB_SIZE,A0.MAX_KEY,A0.FIELDNAME,A0.TABLENAME FROM OJB_HL_SEQ
> A0 WHERE A0.TABLENAME LIKE  'SEQ_OJB_DLIST' ]

This looks like the ojb-internal tables are not present. They are not
required for the PB-Api, but for some of the ODMG stuff they must be
present in the db. Have a look at the repository_interal.xml file and the
corresponding torque schema ojbcore-schema.xml (in src/schema).

Tom


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

Reply via email to