-->
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: INGRES AND HIBERNATE: HELP-ME PLEASE!!!
PostPosted: Tue Feb 14, 2006 5:06 pm 
Newbie

Joined: Tue Oct 11, 2005 10:57 am
Posts: 13
Hi!

I have a column of the type 'long varchar' in a table that is mapped as 'text' in the hbm.xml file.

This table represents a superclass in the object model. This superclass has two subclasses.

When I run a polymorphic query in the superclass,


Code:
List cursos = session.createCriteria(Curso.class)
           .addOrder(Order.asc("nome"))
           .list();


the following error occurs:

    GenericJDBCException (error message: "could not execute query").

The error cause (obtained in debug) is:

    "Request to retrieve BLOB column which had already been accessed. BLOB columns may only be accessed once."


The query generated by Hibernate works fine in the Ingres SQL console, so I think that Hibernate is trying to read twice the same long varchar column (which is mapped as CLOB in Hibernate by default), which is'nt possible in Ingres result sets.

Somebody can help to solve this problem?

The same code runned perfectly in Postgre, but I have to change to the Ingres database. :(

Thans in advance.

Reinaldo.


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.