-->
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.  [ 3 posts ] 
Author Message
 Post subject: createSQLQuery exception:
PostPosted: Wed Jun 06, 2007 6:05 am 
Newbie

Joined: Wed May 23, 2007 12:02 am
Posts: 6
Location: china
java.lang.UnsupportedOperationException: SQL queries do not currently support iteration

Hi All.

code as below
Query query=session.createSQLQuery(" select Character.nationality_cd from crm_t_character Character ");
Iterator ite=query.iterate();

exception throws as below:
java.lang.UnsupportedOperationException: SQL queries do not currently support iteration
at org.hibernate.impl.SQLQueryImpl.iterate(SQLQueryImpl.java:203)


Top
 Profile  
 
 Post subject: Re: createSQLQuery exception:
PostPosted: Wed Jun 06, 2007 6:20 am 
Beginner
Beginner

Joined: Sat May 12, 2007 2:55 am
Posts: 24
hi
use


Query query=session.createQuery(" select Character.nationality_cd from crm_t_character Character ");

dont forget to rate if this helps.

nirav
-----------------------------

dearfashion wrote:
java.lang.UnsupportedOperationException: SQL queries do not currently support iteration

Hi All.

code as below
Query query=session.createSQLQuery(" select Character.nationality_cd from crm_t_character Character ");
Iterator ite=query.iterate();

exception throws as below:
java.lang.UnsupportedOperationException: SQL queries do not currently support iteration
at org.hibernate.impl.SQLQueryImpl.iterate(SQLQueryImpl.java:203)


Top
 Profile  
 
 Post subject: why is it
PostPosted: Thu Jun 07, 2007 2:15 am 
Newbie

Joined: Wed May 23, 2007 12:02 am
Posts: 6
Location: china
thanks ,

I konw it is ok.but I don't konw why is it.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.