Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

Sophie Stone
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
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!