This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
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 Introducing JavaFX 8 Programming this week in the JavaFX 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: 9967

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!