posted 15 years ago
I'm having a strange foreign key problem. I'm allowing Hibernate to create my table structure based on my annotated classes. When using the following
The generated table includes:
I'm getting a foreign key: car_id -> person_car.id
I can't figure out why it is creating the creating a foreign key back to the PERSON_CAR table. If I provide the annotation:
There is more code in the application. What other annotations create foreign keys? What could I be doing wrong?
Thanks.