Yes I mean this, but Z is not an entity bean just an entry in the table. ----- Original Message ----- From: "Alex Loubyansky" <[EMAIL PROTECTED]> To: "Jordi Valldaura" <[EMAIL PROTECTED]> Sent: Tuesday, March 04, 2003 3:56 PM Subject: Re[2]: [JBoss-user] RC2 possible bug in m:n relationships
> Do you mean entity Z is mapped to table AB that is a relation table that > handles many-to-many for A and B? Current implementation was desinged > so that relation table is used only for relationship handling, not to > represent thrid entity. I never tested this case. > > >From what method and at what time do you call getAs() that it returns > empty collection? What is the state of the database at that time? > > alex > > Tuesday, March 04, 2003, 4:34:40 PM, Jordi Valldaura wrote: > > JV> Hi, > > JV> I think it must be my fault. If I have an entry X on the table A, an entry Y > JV> on table B and a entry Z (Z= fk_X, fk_Y) on table AB and then I start my > JV> test: > > JV> 1-finds the entry X and then executes getBs everything works fine > JV> 2-finds the entry Y and executes getAs everything works fine. > > JV> But in the case that B is created in my test ( before I've made a manual > JV> insert into the database relating A and B) getAs returns an empty > JV> collection, > > JV> I supose that the persistence manager thinks that the bean B can't have any > JV> relationships because is new, so its my fault isn't it?. Sorry for my > JV> english its hard to explain. > > JV> jordi > JV> ----- Original Message ----- > JV> From: "Alex Loubyansky" <[EMAIL PROTECTED]> > JV> To: "Jordi Valldaura" <[EMAIL PROTECTED]> > JV> Sent: Tuesday, March 04, 2003 3:09 PM > JV> Subject: Re: [JBoss-user] RC2 possible bug in m:n relationships > > > >> It should work. Could you provide a test case? > >> > >> alex > >> > >> Tuesday, March 04, 2003, 2:12:30 PM, Jordi Valldaura wrote: > >> > >> JV> Hello, > >> > >> JV> I've been working with 3.0.6 and yesterday I decided to change to > JV> 3.2rc2. > >> JV> But > >> JV> one of my bean relationship stopped working, I have another m:n > JV> relationship > >> JV> and it works, the only diference is that in the first one of the > JV> fields is a > >> JV> string(varchar in sql) and the other is an Integer(int(11). In the > JV> second > >> JV> relationship both fields are integer. > >> > >> JV> Here is a description: > >> > >> JV> Bean A Bean B > >> JV> pk: item(integer) pk: ecampus(String) > >> JV> getBs getAs > >> JV> setBs setAs > >> > >> JV> Relation table: (@jboss.relation-table) > >> JV> item: Integer > >> JV> ecampus: String > >> > >> JV> When I call getBs it works ok returning Bs related to A, but when I > JV> call > >> JV> getAs it allways returns an empty collection. > >> > >> JV> I supose it is a bug because it works in 3.0.6, anyone can tell if its > JV> a > >> JV> known one or if its new, or went is it going to be solved?�?��?. > >> > >> JV> Thanks > >> JV> -------------------------------------------------------------------- > >> JV> Jordi Valldaura i Riqu� > >> JV> CSI - Centre de Serveis Inform�tics > >> JV> Enginyeria i Arquitectura La Salle > >> JV> Universitat Ram�n Llull > >> JV> -------------------------------------------------------------------- > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger > for complex code. Debugging C/C++ programs can leave you feeling lost and > disoriented. TotalView can help you find your way. Available on major UNIX > and Linux platforms. Try it free. www.etnus.com > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > ------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
