[ojb-users] n:m-mapping
Brought to you by:
thma
From: Juergen L. <jli...@un...> - 2002-04-17 13:23:41
|
Hello, im Tutorial 3 sind diese Collection Descriptoren angegeben. Wof=FCr steht <inverse_fk_descriptor_ids>999</inverse_fk_descriptor_ids> Wohin verweist die 999? In the Tutorial there is an exaple for n:m-mappings with the following = Descriptors. But what for is the entry <inverse_fk_descriptor_ids>999</inverse_fk_descri= ptor_ids> specially what does 999 mean? <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> <fks_pointing_to_this_class>PERSON_ID</fks_pointing_to_this_class>= <fks_pointing_to_items_class>PROJECT_ID</fks_pointing_to_items_cla= ss> <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> <fks_pointing_to_this_class>PROJECT_ID</fks_pointing_to_this_class= > <fks_pointing_to_items_class>PERSON_ID</fks_pointing_to_items_clas= s> <auto.retrieve>true</auto.retrieve> <auto.update>true</auto.update> </CollectionDescriptor> </ClassDescriptor> Thank for answering Juergen Lippold |