• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Getting data for columns from different tables having same name

 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic