-->
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.  [ 1 post ] 
Author Message
 Post subject: Retrieving Identity column
PostPosted: Wed Oct 18, 2006 1:03 pm 
Newbie

Joined: Wed Oct 18, 2006 12:51 pm
Posts: 1
Hi,
I am trying to execute the query: SELECT Ident_current('my_table') AS EXPR1 on the SQL server we use as our db server. But I get the following error message:

Code:
java.lang.IllegalStateException: No data type for node: org.hibernate.hql.ast.MethodNode \-[METHOD_CALL] MethodNode: '(' +-[METHOD_NAME] IdentNode: 'IDENT_CURRENT' {originalText=IDENT_CURRENT} \-[EXPR_LIST] SqlNode: 'exprList' \-[QUOTED_STRING] LiteralNode:


Any light on this?

My other question is:
Is there a way for Hibernate to just execute a query like this (or a query to get the count/sum/avg etc) without having a mapping bean defined to represent/capture the result, so that we can just retrieve the result from resultset to our own variables and not persist them.

Thank you!


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

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.