Hi everybody,

I try to create two related tables using the @OneToMany-Annotation. I am using 
MySQL-InnoDB-Dialect.


  | @OneToMany(cascade=CascadeType.ALL, fetch=FetchType.EAGER)
  | 
  | or
  | 
  | @OneToMany(cascade=CascadeType.REMOVE, fetch=FetchType.EAGER)
  | 

The tables and the foreign key are created in the database, but without a ON 
DELETE CASCADE statement.

Do I have to specify something else to get a complete foreign key? Or is this a 
bug?

Thanks
Claus



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3920021#3920021

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3920021


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to