RE: 1:1 bi-directional reference

2004-05-07 Thread Raphael . Mankin%GSK%SB
| | cc: | | Subject: RE: 1:1 bi-directional reference | >-

RE: 1:1 bi-directional reference

2004-05-05 Thread Daniel Perry
ptor, and in my bean: private List mes; public getMe(){ if (mes!=null && mes.size()>0){ return (Emp)mes.get(0); } else { return null; } } Daniel. -Original Message- From: Stefan Schlosser [mailto:[EMAIL PROTECTED] Sent: 04 May 2004 15:06 To: OJB

Re: 1:1 bi-directional reference

2004-05-04 Thread Stefan Schlösser
Hi, Me too ! I'd like to add that if you model it with 2 fk's you'll get into a nice update problem. How do you ensure that the to fk's are consistent ? You'll have to program something manually. Since I use a generic access to my value object the solution with the one-element-list doesn't qui

1:1 bi-directional reference

2004-05-04 Thread Daniel Perry
I cant seem to figure out bi-directional references. Am I being thick? or do they not exist? I have two objects in a database, which need to be associated with each other (optionally). ClassB has a property "ClassA me", and "int meId". "meId" is mapped as an int, and "me" is mapped as a referenc