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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Reply 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: 8795

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


SCJP 1.4, SCWCD 1.4 - Hints for you, SCBCD Hints - Demnachst, SCDJWS - Auch Demnachst
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: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Can't use @SqlResultSetMapping
 
Similar Threads
Cannot save Dates in Toplink
GlaasFish EJB runtime error
JPA:- java.sql.SQLException : No database selected Error Code: 1046
Can't use Optimistic Locking
How to Inject session bean from session bean and viceversa