-->
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: table or view does not exist (SQLException)
PostPosted: Fri Apr 30, 2004 6:52 am 
Newbie

Joined: Thu Apr 29, 2004 7:15 am
Posts: 4
hi

i am getting the exception

java.sql.SQLException: ORA-00942: table or view does not exist
this will be occur in the line which is in bold(see the snippet of code)

query.append("SELECT groupHBM FROM ");
query.append(com.liferay.portal.ejb.UserHBM.class.getName());
query.append(" userHBM ");
query.append("JOIN userHBM.groups AS groupHBM ");
query.append("WHERE userHBM.userId = ? ").append(" AND ");
query.append("userHBM.portalId = ? ");
query.append("ORDER BY ");
query.append("name ASC");

String pk1 = userPK.userId;
String pk2 = userPK.portalId;

Query q = session.createQuery(query.toString());
q.setString(0, pk1);
q.setString(1, pk2);
Iterator itr = q.list().iterator();

but we r having table "tcps_group" as well as table "tcps_user" in my database. but the exception is table does not exist.

i don't have idea regarding that.

please any body know the answer. please reavel to me
thanks lot from ur side.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 30, 2004 1:37 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
any schema visibility

_________________
Emmanuel


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.