aspose 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
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Simple table with foreign index
 
Similar Threads
h:selectOneMenu PROBLEM
Unknown entity: java.lang.Float
ExceptionInInitializerError
Hibernate: org.hibernate.AssertionFailure: null id don't flush the Session after an exception occurs
Not able to access Session Bean in Seam Framework