• 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

Entity beans which map two tables with foreign key pointing to alternate key (not primary key)

 
Ranch Hand
Posts: 165
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I am using Toplink and have 2 entity beans: Logger and LuAppList. There is a many-to-one relationship from Logger to LuAppList. The Logger table has a foreign key reference to an alternate key in LuAppList (not the primary key). I get they error:

TOPLINK-45 Missing mapping for field [LU_APP_LIST.app_id]

It works when its mapped to a primary key. But the database table design has changed and the foreign key is now an alternate key.

Does anyone know if this should work, or how to fix it?

Thanks.

Paula



 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic