aspose file tools*
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Can Watch "Can New topic
Author

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: 9351
    
    2

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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Can't use @SqlResultSetMapping