File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Simple table with foreign index" Watch "Simple table with foreign index" New topic
Author

Simple table with foreign index

Max Qua
Greenhorn

Joined: Sep 27, 2008
Posts: 20
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Simple table with foreign index