hi,
i've two classes that are linked to each other (bi-directional) using an
indeirection table. they are called pharmacy and campaign, and pharmacy
has a method List getCampaigns() to retreive all campaigns it is in, and
campaign has a method List getPharmacies(), which gives back the list of
hashCode().
-steve
Steve Clark
ECOS Development Group
[EMAIL PROTECTED]
(970)226-9291
Günther Wieser [EMAIL PROTECTED]
05/02/2005 04:15 AM
Please respond to
OJB Users List ojb-user@db.apache.org
To
'OJB Users List' ojb-user@db.apache.org
cc
Subject
problem with lists in n:m relation and proxy
into this later today, but, as mentioned, haven't seen
any problems so far with this method outside ojb. so if you have any other
idea what could cause this problem, i would very much appreciate that.
kr,
guenther
--
Günther Wieser
creative-it
Guglgasse 6/1/11/1
A-1110 Wien
Austria
http://www.creative-it.com
the toString() method
Günther Wieser wrote:
hmm, haven't seen any error so far when using the toString() method of
objects of this class so far.
what the toString() method does is to get all private fields of the
object by introspection and fill a string buffer with the name of the
field
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
i tried to change my code to using extends, it works perfect for me, and
from an object oriented design view, this is perfect!
what i did (if i apply the things i did to georgs problem):
- create an abstract class Address that has all attributes in it
- derive both classes HomeAddress and
hi,
i found a problem with using a compound primary key (two columns). it
appears only if one of the keys is set to (an empty string, NOT
null).
here's my setup:
ojb 1.0.1, mysql 4.0.23 on XP prof., jdk 1.4.2_07
repository.xml:
class-descriptor
,
guenther
--
Günther Wieser
creative-it
Guglgasse 6/1/11/1
A-1110 Wien
Austria
http://www.creative-it.com
-Ursprüngliche Nachricht-
Von: Armin Waibel [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 28. Februar 2005 20:29
An: OJB Users List
Betreff: Re: problem with compound primary key when
this topic), seems very reasonable.
kr and many thanks,
guenther
-Ursprüngliche Nachricht-
Von: Armin Waibel [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 28. Februar 2005 20:56
An: OJB Users List
Betreff: Re: AW: problem with compound primary key when one key=
Günther Wieser wrote:
hmm