Re: Problem with 1:m relation (ODMG, DList)
[EMAIL PROTECTED] wrote: Hi, I´ve must be really stupid but, after read tutorials, eMails, source code... I´ve not be able to run my 1:m code. Two classes A and B, with A --- B relation (1:m) public class A { private int id; private DList listB; private String name; public void A() { listB = new DListImpl() is this correct or must be use OJB.getInstance().newDList()??? } } Do you rely on using DList? Or what about /** * @ojb.collection element-class-ref=B * foreignkey=idA * orderby=id */ private List listB = new Vector(); -- Christian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with 1:m relation (ODMG, DList)
Ok, I´ve just to rewrite all code with PB api, using Vector and RemovalAwareCollection and it works But, why do not DList and ODMW work? I´ve seen DListImplementatio source code and I don´t recongnize any piece of code to call ODMG (PB) api.. jose Galiana [EMAIL PROTECTED] wrote: Hi, I´ve must be really stupid but, after read tutorials, eMails, source code... I´ve not be able to run my 1:m code. Two classes A and B, with A --- B relation (1:m) public class A { private int id; private DList listB; private String name; public void A() { listB = new DListImpl() is this correct or must be use OJB.getInstance().newDList()??? } } Do you rely on using DList? Or what about /** * @ojb.collection element-class-ref=B * foreignkey=idA * orderby=id */ private List listB = new Vector(); -- Christian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with 1:m relation (ODMG, DList)
[EMAIL PROTECTED] wrote: Ok, I´ve just to rewrite all code with PB api, using Vector and RemovalAwareCollection and it works Try to use the ODMG instead of the PB API now. That worked for me, too. But I had problems using HashSet for collections (see previous mail Collection problem from 07.08.2003). -- Christian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]