I finally figured out how to get a 1:1 relationship working. But now, I have a problem with ClassCastException. All I know is that when I tried to do a create(), I get a classcastexception after this sql statement: INSERT INTO VECTOR_PROJECT (project_id, description, name, parent_project_id, type, user_id) VALUES (?, ?, ?, ?, ?, ?)
The user_id column is the foreign key. I don't know what object Oracle JDBC is trying to put into any of these fields. Is there anyway to find out?