Hello,
I want to declare one of my columns as final. I want that the column is written on an insert but not on an update. The column is a foreign key representing a many-to-one reference in my mapping.
Therefore I found the alter table constraint ON UPDATE NO ACTION.
Is there Hibernate xml mapping support for that? I could not find any attribute on
Code:
many-to-one
in Hibernate 3.5.6.
As we use the hbm to generate our sql schema we have to declare it there.
What way of preventing column updates does hibernate support?
regards