File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes Problem in getting data Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Reply Bookmark "Problem in getting data" Watch "Problem in getting data" New topic
Author

Problem in getting data

Tarun Kumar
Greenhorn

Joined: Apr 30, 2008
Posts: 26
I am trying to get data from mysql table with hibernate.
The problem is that in some column data is being fetched correctly but in some some null is the result.
can any body provide me the solution for this.


Tarun Kumar
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4967

Download the MySQL Gui tools and see what is in your database. Is the right information coming back?

My signature links lead to a variety of tutorials, all of which were tested on MySQL and Tomcat. You might want to go through them if you're learning.

Perhaps posting a snippet of your code, your annotations or your mapping file might give us a little more to work with. As of now, we know that sometimes it's null, sometimes it's not null. That's not alot to work with.

Help us help you!

-Cameron McKenzie


Author of Hibernate Made Easy, What is WebSphere???, JSF 2.0 Made Easy and the SCJA Certification Guides
Tarun Kumar
Greenhorn

Joined: Apr 30, 2008
Posts: 26
Thanks Cameron
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem in getting data
 
Similar Threads
java.io.IOException: Unable to read entire block; 493 bytes read before EOF; expected
how do I pass data from one JSP to another
JvftpAPI (java ftp client) question
ojdbc14.jar, batch update problem
Not authenticating the user