Re: [ojb-users] n:m-mapping
Brought to you by:
thma
From: Thomas M. <tho...@ho...> - 2002-04-17 19:18:56
|
Hi Juergen, Juergen Lippold wrote: > Hello, > > im Tutorial 3 sind diese Collection Descriptoren angegeben. > Wof=FCr steht <inverse_fk_descriptor_ids>999</inverse_fk_descriptor_id= s> > Wohin verweist die 999? > > In the Tutorial there is an exaple for n:m-mappings with the=20 following Descriptors. > But what for is the entry=20 <inverse_fk_descriptor_ids>999</inverse_fk_descriptor_ids> > specially what does 999 mean? > That's one of the "dark spots" on the repository.dtd. It just means "no descriptor at all" but the parser requires to have an int in this place. I hope to provide a polished version of the repository.dtd soon. Please ignore this 999 for the time being. Thomas > > <ClassDescriptor id=3D"1"> > <class.name>test.ojb.broker.Person</class.name> > ... > <CollectionDescriptor id=3D"2"> > <cdfield.name>projects</cdfield.name> > <items.class>test.ojb.broker.Project</items.class> > <inverse_fk_descriptor_ids>999</inverse_fk_descriptor_ids> > <indirection_table>PERSON_PROJECT</indirection_table> >=20 <fks_pointing_to_this_class>PERSON_ID</fks_pointing_to_this_class> >=20 <fks_pointing_to_items_class>PROJECT_ID</fks_pointing_to_items_class> > <auto.retrieve>true</auto.retrieve> > <auto.update>true</auto.update> > </CollectionDescriptor> > .. > </ClassDescriptor> > > <ClassDescriptor id=3D"1"> > <class.name>test.ojb.broker.Project</class.name> > ... > <CollectionDescriptor id=3D"2"> > <cdfield.name>persons</cdfield.name> > <items.class>test.ojb.broker.Person</items.class> > <inverse_fk_descriptor_ids>999</inverse_fk_descriptor_ids> > <indirection_table>PERSON_PROJECT</indirection_table> >=20 <fks_pointing_to_this_class>PROJECT_ID</fks_pointing_to_this_class> >=20 <fks_pointing_to_items_class>PERSON_ID</fks_pointing_to_items_class> > <auto.retrieve>true</auto.retrieve> > <auto.update>true</auto.update> > </CollectionDescriptor> > </ClassDescriptor> > > Thank for answering > > Juergen Lippold > > > > _______________________________________________ > Objectbridge-users mailing list > Obj...@li... > https://lists.sourceforge.net/lists/listinfo/objectbridge-users > > > > |