• 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Hibernate annotation referencedcolumnname doesnt work (referencedcolumnname is assigned primary key)

Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in enthesaplasmaek entity, i made relationship as below with my two entities, EntHesaplasma and EntHesaplasmaek

when i run the below hql , hibernate makes a relationship between hesaplasmaekid and hesaplasmaid (primary key (@Id) of enthesaplasma entity). But the correct relationship should be between carihareketid in enthesaplasma entity and enthesaplasmaekid in the enthesaplasmaek entity.

Result of the query (from Hibernate Query Editor in eclipse) is shown in the attachment

how can i correct this error ? thanks.

My entities are below

EntHesaplasma entity

EntHesaplasmaek entity

[Thumbnail for screenshot_Wed_Jul_01_09.24.23.png]
result of the query
    Bookmark Topic Watch Topic
  • New Topic