-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: Sybase&Hibernate problem,and one can give me a hand?
PostPosted: Mon Feb 16, 2004 9:33 pm 
Newbie

Joined: Mon Feb 16, 2004 11:01 am
Posts: 6
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!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 16, 2004 9:41 pm 
Newbie

Joined: Mon Feb 16, 2004 11:01 am
Posts: 6
When I execut the same codes in MySQL,it retruns the expected value,so i'm confused whether it's the sybase configuration problem?But i've searchd on the web,it seems not much case using Hibernate in connecting sybase DB,so i doubt the performance of hebernate connecting sybase.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 17, 2004 3:48 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
surround with try catch block and log + have a look at the Hibernate logs

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 17, 2004 8:51 pm 
Newbie

Joined: Mon Feb 16, 2004 11:01 am
Posts: 6
i've got it,because i create table in database master,however the space of master is limited,so when i insert new record in database, it's nearly full.so the storing procession suspends!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.