db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davide Mora <d_m...@yahoo.com>
Subject little fix in AutoBuildDb.java
Date Tue, 31 Dec 2002 10:35:34 GMT

Hi, i got a class cast exception doing some tests.
I think i found the problem, instead of
PersistenceBrokerImpl as expected i used the
PersistenceBroker, and seems work now.
-Davide

----------------------------------
    public static void main(String args[])
    {
        PersistenceBroker broker = null;
        try
        {
            	broker = (PersistenceBroker)
PersistenceBrokerFactory.defaultPersistenceBroker();
            	Connection conn =
broker.serviceConnectionManager().getConnection();
            
AutoCreatorDb.autoCreate(broker.getDescriptorRepository(),
broker.serviceConnectionManager());
        }


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

Mime
View raw message