Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes EJB and other Java EE Technologies and the fly likes Getting data for columns from different tables having same name Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Getting data for columns from different tables having same name " Watch "Getting data for columns from different tables having same name " New topic
Author

Getting data for columns from different tables having same name

Sham Phadtale
Ranch Hand

Joined: Jul 29, 2008
Posts: 75
Hello All,

I am facing a problem while using JPA.
I am using following code to get data from different tables for columns with same name -


This object list contains correct values for Hostname, AName and AId, but value of CName is incorrect, it is getting value of AName.
Also I tried to get value for another column of Table C, I got it.
What should I do to get values from columns of different table having same column names?

When above query run through query browser I am getting correct result that is all actual values.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting data for columns from different tables having same name
 
Similar Threads
using join query in hibernate
retriving bit from Database
retriving bit from Database
call resultset in join query
Parent class id value instead of child's id used incorrectly for querying Set assoc.