FW: Unusual object relation mapping possible with OJB ?

2003-12-16 Thread Mahler Thomas
> -Original Message- > From: Mahler Thomas > Sent: Tuesday, December 16, 2003 2:10 PM > To: 'Stefan Schlösser' > Subject: RE: Unusual object relation mapping possible with OJB ? > > > Hi Stephan, > > > > > Hi Thomas, > > &

Re: Unusual object relation mapping possible with OJB ?

2003-12-16 Thread Stefan Schlösser
Hi Thomas, Sure, I need the link table. I read throught the examples in the link you gave before posting, my problem is that I do not have and don't want to make the relationship explicit on the object level. I.e. Persons or Address do NOT have a collection pointing to the other type. The collec

RE: Unusual object relation mapping possible with OJB ?

2003-12-15 Thread Mahler Thomas
Hi Stefan, What you describe is in essence a m:n association between Address and Person. A Person may have multiple Adresses An Address may have multiple Persons associated. Apart from the tables ADDRESS and PERSON you also need an intermediary table LINK OJB provides out of the box support for

Unusual object relation mapping possible with OJB ?

2003-12-15 Thread Stefan Schlösser
Hi, I would like to know how to describe the following relations in the repository.xml. class Address{ //no reference to Person static long type = 1; long id; String streetName; } class Link{ //links Persons and address by id and type long sourcetype; long sourceid; long targettype; long