-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: SchemaExport
PostPosted: Tue May 17, 2005 4:24 am 
Newbie

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


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 17, 2005 12:24 pm 
Newbie

Joined: Sat May 14, 2005 12:09 pm
Posts: 3
Does anybody know anything about SchemaExport??

Please share your knowledge.

Thank You.


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 19, 2005 2:43 am 
Newbie

Joined: Sat May 14, 2005 12:09 pm
Posts: 3
HELP ME, PLEASE, DON'T PUSH ME TO STREET GANGS AND DRUGS :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.