Re: Mapping question

2005-03-03 Thread Georg Müller
Sorry for that second posting. I sent this before I subscribed to the list, so I thought it will not be posted (now, with a latency of nearly one day) Regards, Georg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: Mapping question

2005-03-03 Thread Günther Wieser
hi, as far as i understand this, you try to differentiate by the value of adress.type whether an adress is a home wor work adress? well, i have no solution for that, but i tried it here with a similair data structur, and it didn't work either. to be honest i'm not sure if this is the intended use

Re: Mapping question

2005-03-03 Thread Armin Waibel
Hi, not sure that I understand the problem. Each User has two Address attributes ('home' and 'work'), both are of the same type 'Address' (both 1:1 references), you don't use extension classes AddressHome and AddressWork objects. Address use a composite PK ('login' and 'type'). In this case

Re: Mapping question

2005-03-03 Thread Thomas Dudziak
As far as I understand he wants to use a reference that refers to a class with a compound primarykey, where one of the foreignkey values is fixed: reference-descriptor name=homeAddress class-ref=Address auto-update=true

Re: Mapping question

2005-03-03 Thread Georg Müller
Thomas Dudziak wrote: As far as I understand he wants to use a reference that refers to a class with a compound primarykey, where one of the foreignkey values is fixed: reference-descriptor name=homeAddress class-ref=Address auto-update=true

RE: Mapping question

2005-03-03 Thread Günther Wieser
when showing how to implement your own ClassDescriptor. cool stuff! kr, guenther -Original Message- From: Georg Müller [mailto:[EMAIL PROTECTED] Sent: Thursday, March 03, 2005 11:33 PM To: OJB Users List Subject: Re: Mapping question Thomas Dudziak wrote: As far as I understand he

Re: Mapping question

2005-03-03 Thread Georg Müller
I now have a running version, but the way Thomas proposed would be much nicer. I have added a collection descriptor collection-descriptor name=addresses element-class-ref=Adress auto-update=true auto-delete=true inverse-foreignkey field-ref=login/ /collection-descriptor and he returns

RE: Mapping question

2004-06-03 Thread Daniel Perry
: Re: Mapping question Hi Daniel, I had a look at the extents now. I think this will basically work. The problem I see is, that the database has 110 tables and all are using a globally generated OID. In my basic class I would have to list all other classes as extents of this one. What does

Re: Mapping question

2004-06-02 Thread Sebastian
To simplify my question: I have a table containing a foreign key column and the foreign key of a row points to different tables based on the first three letters of the foreign key. E.g. when it starts with art then it points to a record in the article table. When it starts with cat then it

RE: Mapping question

2004-06-02 Thread Daniel Perry
] Subject: Re: Mapping question To simplify my question: I have a table containing a foreign key column and the foreign key of a row points to different tables based on the first three letters of the foreign key. E.g. when it starts with art then it points to a record in the article table. When

Re: Mapping question

2004-06-02 Thread Sebastian
types extend it. It would pick the right class based on whichever table has an item with that primary key. Daniel. -Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf Of Sebastian Sent: 02 June 2004 17:07 To: [EMAIL PROTECTED] Subject: Re: Mapping question To simplify my question

Re: Mapping question

2004-02-16 Thread BIRGITTA . MOEHRING
Hello Florent, I understand this as a question about the typeB collection or the typeA collection exclusively in the C instance? Then you can't even model this in UML (or so I think), so I don't think you can in OJB. The only workaround I know without having two collections in C is a

Re: Mapping question

2004-02-16 Thread ftanare
My english is not good ;-) What I want is in C object 2 collections one with typeA Object and one with typeB Object. My question is how to do a mapping with OJB that can make this kind of switch on type field. In other word when I load A objects collection of a C object the query is : SELECT

Re: Mapping question

2004-02-16 Thread BIRGITTA . MOEHRING
Hello again, If you want C.foreignId = A.idA then the 1:n - relation between C and A is the other way round: C would be the n-class. But if you simply want C having two collections as attributes, it is described in tutorial 3, mapping 1:n relations. Was that the answer? regards, Birgitta

RE: Mapping Question

2004-01-04 Thread Coup, Robert Muir
Hi Patrick. Is the field doc_id in download_pal_model actually meant to be model_id? Otherwise I am a touch confused :) Also, I assume you've checked out the advanced O/R mapping stuff at http://db.apache.org/ojb/tutorial3.html - if not, do it now! Idea #1: For download - model

Re: Mapping Question

2004-01-01 Thread Patrick Scheuerer
ooops, I guess attachments are not allowed in this mailing list. here's a link to the picture: http://homepage.hispeed.ch/tabalooga/datamodel.jpg the same problem of course also exists for the keyword table. Thank you, Patrick

RE: Mapping question

2003-12-01 Thread Norbert . Woegerbauer
What do I have to do to get this join? Thanks, Norbert. -Original Message- From: eric barbe [mailto:[EMAIL PROTECTED] Sent: Freitag, 28. November 2003 15:08 To: OJB Users List Subject: RE: Mapping question Hi, I don't really understand you're pb. ;o( Is it : any field from my class A can

RE: Mapping question

2003-11-28 Thread eric barbe
] Objet : RE: Mapping question Thanks, I defined it like that, but: If A is 1 and B is n. In A class descriptor write : collection-descriptor name=relation_name_in_A_class element-class-ref=url.B inverse-foreignkey field-ref=mykey/ /collection-descriptor And in B class descriptor write

RE: Mapping question

2003-11-27 Thread Norbert . Woegerbauer
Thanks, I defined it like that, but: If A is 1 and B is n. In A class descriptor write : collection-descriptor name=relation_name_in_A_class element-class-ref=url.B inverse-foreignkey field-ref=mykey/ /collection-descriptor And in B class descriptor write this field-descriptor