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.  [ 2 posts ] 
Author Message
 Post subject: Bulk update with joined subclass - ORA-00918
PostPosted: Thu Sep 14, 2006 9:20 pm 
Newbie

Joined: Fri Aug 13, 2004 7:27 pm
Posts: 6
Hello,
I have 2 classes USercontent and content , UserContent extends content as a joined-subclass strategy keyed by the same column Content_id. when i try and do a bulk update using a named hql as...

<query name="update.content.as.verified">
update UserContent uc set uc.isVerifiedByAdmin =:isVerified where uc.id in (:contentIdList)
</query>

i get an oracle column ambigous error exception. the sql executed and the exception log is ...


Hibernate operation: could not insert/select ids for bulk update; bad SQL grammar [insert into HT_USER_CONTENT select userconten0_.CONTENT_ID as CONTENT_ID from USER_CONTENT userconten0_ inner join CONTENT userconten0_1_ on userconten0_.CONTENT_ID=userconten0_1_.CONTENT_ID where CONTENT_ID in (?)]; nested exception is java.sql.SQLException: ORA-00918: column ambiguously defined

Caused by: java.sql.SQLException: ORA-00918: column ambiguously defined



any ideas how i can qualify the content_id to use uc.content_id ?Iam using hibernate 3.1.3

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 19, 2006 12:51 pm 
Newbie

Joined: Fri Aug 13, 2004 7:27 pm
Posts: 6
bumping this thread...anyone has any ideas? kinda stuck with using direct jdbc for now which can become more difficult with deletes


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