Joined: Sat May 14, 2005 12:09 pm Posts: 3
|
Hello all!
I try to get database schema by using hibernate SchemaExport class at runtime.
I have following questions about this.
1. I need a constraint in my table
" CONSTRAINT `FK_CODES_CREATED_BY` FOREIGN KEY (`CREATED_BY`) REFERENCES `users` (`USER_ID`) ON DELETE SET NULL ON UPDATE CASCADE,"
Is there any way to explain hibernate "ON DELETE" and "ON UPDATE" statements. I found only "<!ATTLIST key on-delete (cascade|noaction) "noaction">" Is it possible to set "ON DELETE SET NULL ON UPDATE CASCADE" through Hibernate
2. Can Hibernate create a database with SchemaExport? I mean "CREATE DATABASE <NAME>"
Thanks.
Hibernate version: 3.0.3
Name and version of the database you are using: MySQL 4.1.9
|
|