[jboss-user] [EJB 3.0] - Problems with CascadeType.ALL
cleonhar
do-not-reply at jboss.com
Tue Aug 29 09:04:23 EDT 2006
Hi,
I have a question about the use of CascadeTypes.
I am using jboss-4.0.4-GA with MySQL 4.0.15 (INNODB).
I have annotated a getter like this:
| @OneToMany(fetch = FetchType.EAGER, cascade=CascadeType.ALL)
|
In the generated table I expect to get a foreign key with ON DELETE CASCADE, and ON UPDATE CASCADE. But if I check the created table a foreign key is created but without any CASCADES.
Do I use the annotation wrong?
Bye
Claus
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968061#3968061
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3968061
More information about the jboss-user
mailing list