This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Simple table with foreign index

 
Max Qua
Greenhorn
Posts: 20
  • 0
  • 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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic