Hibernate version: 3.2 - Annotattions 3.3.0.GA
Postgres 8.2
Reading the documentation, an annotation like this one
Code:
@ManyToOne
@OnDelete(action=OnDeleteAction.CASCADE)
@JoinColumn(name="party")
@ForeignKey(name="FK_Party")
should let the schema export (hbm2ddl.auto=create-drop) produce a foreign key named fk_party with the "on delete action" setted to cascade.
Unfortunatly it does not happen on a Postgres 8.2. The foreign key is corrected created and named, but the "on delete action" remains setted to No action.
Where am i wrong?
Thanks a lot