File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Object Relational Mapping and the fly likes Can't use @SqlResultSetMapping Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Can Watch "Can New topic

Can't use @SqlResultSetMapping

dinesh thalis
Ranch Hand

Joined: Nov 19, 2008
Posts: 39
I want to use @SqlResultSetMapping, so I wrote that code in My Customer entity class, below show that code

After that I wrote query to retrieve data below show that method (this method in stateless session beans class)

After calling this method below exception thrown

My database name is copbank and It has Customer table, please help me to overcome this problem.
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 10032

It clearly says that """Table 'copbank.Customer' doesn't exist"""

SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
dinesh thalis
Ranch Hand

Joined: Nov 19, 2008
Posts: 39
My my database(copbank) have Customer table, please explain why? Is there any wrong in my code. please give me some comments.
I agree. Here's the link:
subject: Can't use @SqlResultSetMapping
It's not a secret anymore!