File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Object Relational Mapping and the fly likes Simple table with foreign index Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Simple table with foreign index" Watch "Simple table with foreign index" New topic

Simple table with foreign index

Max Qua

Joined: Sep 27, 2008
Posts: 20

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
I agree. Here's the link:
subject: Simple table with foreign index
It's not a secret anymore!