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: uniqueResult doesn't work with INFORMIX + JBPM
PostPosted: Fri Jul 07, 2006 2:57 pm 
Newbie

Joined: Fri Jul 07, 2006 2:42 pm
Posts: 2
I experienced problems using JBPM (that uses Hibernate) and Hibernate 3. In concrete, the problem arise in the query:

Code:
  <query name="GraphSession.findLatestProcessDefinitionQuery">
    <![CDATA[
     select pd, pd.version
     from org.jbpm.graph.def.ProcessDefinition as pd
     where pd.name = :name
     order by pd.version desc   
    ]]>
  </query>


The jbpm class do:

Code:
      Query query = session.getNamedQuery("GraphSession.findLatestProcessDefinitionQuery");
      query.setString("name", name);
      query.setMaxResults(1);
      processDefinition = (ProcessDefinition) query.uniqueResult();

In this point a ClassCastException is thrown due to uniqueResult returns a list instead of a single row.

Someone have experimented some similar with Informix ?
Thanks in advance ..

(I know .. I could to change the jbpm code ... but this is the last solution)


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.