Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Object Relational Mapping
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Object Relational Mapping
table or view doesnt exist error
Booma Devi
Ranch Hand
Posts: 61
posted 10 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Can someone please help to solve the below error?
Hibernate: select this_.EMP_ID as EMP1_0_0_, this_.EMP_NAME as EMP2_0_0_ from EMPLOYEE this_
Exception in thread "main" org.hibernate.exception.SQLGrammarException: could not execute query at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:67) at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43) at org.hibernate.loader.Loader.doList(Loader.java:2148) at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2029) at org.hibernate.loader.Loader.list(Loader.java:2024) at org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:94) at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1533) at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:283) at com.inautix.Dao.TestDaoImpl.listCurrencyInfo1(TestDaoImpl.java:86) at TestDB.main(TestDB.java:20) Caused by: java.sql.SQLException: ORA-00942: table or view does not exist
Matthew Brown
Bartender
Posts: 4568
9
posted 10 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
That just sounds as if either the EMPLOYEE table doesn't exist, or the database user you are connecting as doesn't have permission to see it. Maybe it needs qualifying with the schema name. I'd suggest checking those first.
Booma Devi
Ranch Hand
Posts: 61
posted 10 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Thanks for your quick response mathew. The problem is, I didn't include the schema name in hibernate mapping file. Now, its working fine.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Query not returning any data..
Joining tables
How to autharize against Oracle DB with an LDAP Authentication
com.ibm.websphere.ce.cm.ObjectClosedException: DSRA9110E: Statement is closed.
joined-subclass problem
More...