I have connected to sybase database by jdbc driver,but when i try to execute the follow codes :
//m_sessions is SessionFactory Object Session session = m_sessions.openSession(); String str = "select count(*) from Event"; Object obj = session.iterate(str).next();
when debuging to the last line code,there is no any reaction,and also there is no any return value in the obj,it seems like the programme halting,in fact,the obj should contain the number of records in Event.I dont how to resolve it.
Urge for good suggestion!
|