-->
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: Can't query views that contain a GROUP BY.
PostPosted: Tue May 17, 2005 9:17 am 
Beginner
Beginner

Joined: Tue May 17, 2005 9:10 am
Posts: 29
I'm getting error "RDMS-F-VIEWNORET, view cannot be retrieved by database key"
when accessing a view built by "GROUP BY" via calling session.find(query, value,
type).

This is a known issue for Oracle RDB database, see
http://www.kuzbass.ru/docs/rdb702/oracl ... o_108.html,

The workaround is either to use nondynamic cursors to access the view or access the base tables that make up the view, not the view itself.

We can't access base tables, *have to* access views, so the only one choice for us is looking for a solution from hibernate to use nondynamic cursors since the legacy databse never goes away. Is it possible to pass a flag into session.find() to turn on/off dynamic cursor for a particular query? Or any better ideas?


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.