Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version: 3
Name and version of the database you are using: DB2
How can I produce typed one-to-one associations without using a composite key?
I've looked at this example:
http://www.hibernate.org/hib_docs/v3/re ... ed-onetone
However, for argument sake imagine my Address table does not have a composite-id but has a generated surrogate key. It also has a type column which is what I want to "type" it by. Can I achieve this mapping without having to turn the table's id into a composite?