users@glassfish.java.net

Customizing drop-and-create-tables behaviour in EclipseLink

From: <glassfish_at_javadesktop.org>
Date: Wed, 28 Apr 2010 06:20:58 PDT

When using the drop-and-create-tables function as specified in the persistence.xml
file is it possible to specify some custom sql to be executed prior to the generated ddl script? I want to set foreign_key_check=0 and unique_checks=0 (MySQL) to
prevent to copious error messages that get thrown out for foreign key constraints
etc... (it seems to work eventually but you'd never know it based on the output).

I see that you can override the generated SQL at the column level with the @Column(columnDefinition=) but this isn't going to achieve what I want.

Regards,
Brendan.
[Message sent by forum member 'healeyb']

http://forums.java.net/jive/thread.jspa?messageID=399387