Hi,
I also have the same issue here. Though when I'm creating the object relation mapping I use cascade=CascadeType.ALL,
somehow when auto-generating the new database schema cascade types (e.g. update,delete) are set to restrict, although
no errors are presented during the process of generating the schema and the foreign keys relations are created correctly.
Here is a small snippet of how my code looks like.
Entity A (AnotherEntity)
Entity B(EventType)
I'm wondering if anybody has any idea about the problem I'm facing. Btw I'm using JPA - hibernate ddl-generation on mysql 5 and
deploy on
jboss 4.2
Thanks in advance for the help
--
y.p.