Hi, I think it must be my fault. If I have an entry X on the table A, an entry Y on table B and a entry Z (Z= fk_X, fk_Y) on table AB and then I start my test:
1-finds the entry X and then executes getBs everything works fine 2-finds the entry Y and executes getAs everything works fine. But in the case that B is created in my test ( before I've made a manual insert into the database relating A and B) getAs returns an empty collection, I supose that the persistence manager thinks that the bean B can't have any relationships because is new, so its my fault isn't it?. Sorry for my english its hard to explain. jordi ----- Original Message ----- From: "Alex Loubyansky" <[EMAIL PROTECTED]> To: "Jordi Valldaura" <[EMAIL PROTECTED]> Sent: Tuesday, March 04, 2003 3:09 PM 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 3.2rc2. > JV> But > JV> one of my bean relationship stopped working, I have another m:n relationship > JV> and it works, the only diference is that in the first one of the fields is a > JV> string(varchar in sql) and the other is an Integer(int(11). In the 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 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 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