Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 9345

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
Similar Threads
GlaasFish EJB runtime error
JPA:- java.sql.SQLException : No database selected Error Code: 1046
Cannot save Dates in Toplink
Can't use Optimistic Locking
How to Inject session bean from session bean and viceversa