Regular |
|
Joined: Thu Apr 21, 2005 9:05 am Posts: 50 Location: Boston, U.S
|
I have a typical scenario in which
TABLE A has one to many relationship with TABLE B.
The Schema is somewhat like the following
TABLE A
=======
ID -- Primary Key
DESC
TABLE B
=======
ID |
SSN | -- ID and SSN are composite keys.
DESC
ID of Table is generated from sequence, I dont know
how to set it ID of Table A into Table B in case of
a composite key. I have done this before for non
composite keys
I could not find this in the documentation any
help is highly appreciated.
Hibernate version:
3.0.1
Mapping documents:
Code between sessionFactory.openSession() and session.close():
Full stack trace of any exception that occurs:
Name and version of the database you are using:
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt:
|
|