That's my problem when I try to retrieve objects of type ExtendA with an OQL
query. Here is the query:
String oql =
"select object from ExtendA object "
+ " where <conditions>;
OQLQuery query = db.getOQLQuery(oql);
try {
query.bind (<param>);
QueryResults results = query.execute();
try {
while ( results.hasMore() ) {
<do sth with results.next(); >
}
} finally {
results.close();
}
} finally {
query.close();
}
It throws a PersistentException with the message in the subject when it
arrives at results.next().
The exact stack trace is:
org.exolab.castor.jdo.PersistenceException: Requested to load/fetch an object
of type ExtendA, where persistent storage returned an object of type class A
I've already searched for this in the mail archive and tried all suggestion
but couldn't solve the problem. I already add to the mapping of A and ExtendA
the following:
<cache-type type="none"/>
And I've downloaded the last version of castor 0.9.4.2 . The problem is
supposed to be fixed in this release, but it doesn't work either.
Could somebody help with this issue?
Thanks in advance,
Janina
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev