On Thu, 21 Aug 2003 08:54:07 -0500
Ketan Gangatirkar <[EMAIL PROTECTED]> wrote:

> persistence-capable-superclass="A"


 That's what I was missing !
 Thank you !


 I went a little further and ...  got another (smaller, I think) problem
:

java.lang.ClassCastException
        at org.apache.ojb.jdori.sql.OjbExtent.<init>(Unknown Source)
        at org.apache.ojb.jdori.sql.OjbStoreManager.getExtent(Unknown
Source)
        at com.sun.jdori.common.PersistenceManagerImpl.getExtent(Unknown
Source)
        at com.sun.jdori.common.query.QueryImpl.checkCandidates(Unknown
Source)
        at com.sun.jdori.common.query.QueryImpl.execute(Unknown Source)
        at UCListAllStatutes.apply(UCListAllStatutes.java:38)
...

 Statue2 get recorded in its own table correctly.
 Statute also

 But I can't list Statute the way I used to :

  manager.currentTransaction().begin();
  Query query = manager.newQuery(Statute.class);
  Collection allStatutes = (Collection)query.execute();

 The last line give me the exception.

 Any idea about that ? 

 Cédric


-- 
Societe Code Lutin
2, rue Robert le Ricolais
BP 20446 44304 NANTES CEDEX 3
Tel 02.40.50.29.28, Fax 02.40.93.99.21
http://www.codelutin.com
--------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to