Bruce wrote:
> No, there is no guarantee because they're returned in the order
> specified (or not specified) by the OQL query. For example, in a
> query to fetch some objects, it is possible to use the ORDER BY
> clause.
Not sure we are on the same page here, will rephrase my question
to make sure.
Class A is parent of Class B (Class B depends on Class A). relationship
is implemented using Vector.
Considder following scenario:
...
A a = new A();
B b1 = new B();
B b2 = new B();
B b3 = new B();
a.addB(b1);
a.addB(b2);
a.addB(b3);
<Persistify a using JDO>
...
<get a from persistent storage>
Vector v = a.getBs();
Now v isn't guaranteed to be {b1,b2,b3} correct ?
Doesn't that mean that from a client application point of view
> No, there is no guarantee because they're returned in the order
> specified (or not specified) by the OQL query. For example, in a
> query to fetch some objects, it is possible to use the ORDER BY
> clause.
Not sure we are on the same page here, will rephrase my question
to make sure.
Class A is parent of Class B (Class B depends on Class A). relationship
is implemented using Vector.
Considder following scenario:
...
A a = new A();
B b1 = new B();
B b2 = new B();
B b3 = new B();
a.addB(b1);
a.addB(b2);
a.addB(b3);
<Persistify a using JDO>
...
<get a from persistent storage>
Vector v = a.getBs();
Now v isn't guaranteed to be {b1,b2,b3} correct ?
Doesn't that mean that from a client application point of view
persistfied Vectors doesnt behave like vectors at all, but
rather like Collections ?
Kind Regards
Jan H. Hansen
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev
Kind Regards
Jan H. Hansen
