Hello, guys! Thank you for such a cool piece of software. I'm building web-application with castor+tapestry. During its development i've made a very big and complex object. Firstly I've made mappings/code/interfaces for adding my object with the help of castor into database. It works perfectly. Then, I've decided to try to make a search in the database and found, that something suck ;-)
Now, i'll try to be more specific.
For example. We got 3 classes A,B and C.
class A {
private BigDecimal id;
private B b;
// getters/setters ...
}
class B {
private BigDecimal id;
private ArrayList collection_of_c;
//getters/setters
public void addC(C c) {
this.c.add(c);
c.setB_object(this);
}
}
class C {
private BigDecimal id;
private String name;
private B b_object;
//getters/setters
}
Once again. When i create this object everything works perfect. But when
i'm trying to make a
SELECT a FROM A a
i get null at B.collection_of_c
I've read JDO FAQ and it seems to me, that i have to implement
Persistent interface in class C. Am i right?
I've also looked at tests/jdo/TestPersistent.java example but i still
don't understand how can i use that approach in my situation.
May be someone has solved sometime such case?
--
Regards,
CEO Linux-Online.Ru
Korolyov Timofey
www.linuxshop.ru :: www.prefnews.ru :: www.dotstyle.ru
JabberID: [EMAIL PROTECTED]
signature.asc
Description: This is a digitally signed message part
