Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Simple table with foreign index

 
Max Qua
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a problem defining the table and the object for a table with only one foreign key.
There are two tables:
User (with id and other fields)
ChessWaitingList which has only one field "player" that is the id of a user in the User table.
I tried several configuration but without success. How can I implement this using hibernate? I thought it was a simple task...
Anyway this is my last try ...







...and the error I got is:



Please help
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic