ddl « Schema « JPA Q&A





1. Intercepting schema creation in Hibernate    stackoverflow.com

Is there a way to intercept the DDL execution step in hibernate? I am trying to do some experiments with hibernate. I would like to route the DDL to different databases ...

2. Failed to export DDL using SchemaExport !!!    forum.hibernate.org

Author Message ericmacau Post subject: Failed to export DDL using SchemaExport !!! Posted: Thu Dec 18, 2003 5:38 am Regular Joined: Tue Nov 04, 2003 12:37 pm Posts: 56 Hello, The following hbm.xml is generated by XDoclet. But it failed to export SQL? I don't know where caused the problem. It failed when generated with the Player.hbm.xml !!!! The ...

3. Schema export generate emplty ddl for MySQL db    forum.hibernate.org

hibernate.config.xml: com.mysql.jdbc.Driver jdbc:mysql://localhost:3306/ts user password jdbc/dbs org.hibernate.transaction.JTATransactionFactory org.hibernate.transaction.JBossTransactionManagerLookup org.hibernate.context.JTASessionContext true true org.hibernate.dialect.MySQLDialect false true 0 ...

4. Using SchemaUpdate to generate DDL only    forum.hibernate.org

Im trying to update my Oracle 10g instance schema by running SchemaUpdate from the command line. But the DBAs arent impressed and SchemaUpdate fails due to lack of priviliges. So I want to use SchemaUpdate to only generate the DDL for me for the diff b/w my XML schema and actual DB schema. Then I intend to run those statements by ...

5. Creating DDL Schemas using a class instead of an Ant    forum.hibernate.org

Sorry for not coming back earlier, but I solved the problem by myself. Thanks for the answers. I kinda figured it out once my boss explained me exactly what I had to do. I thought I had to reinvent the wheel or something... :P The fact is I really just needed to use the SchemaExport Class. Like you said. Hibernate in ...

6. Custom DDL with SchemaExport    forum.hibernate.org

Is there a way to put some custom / arbitrary DDL or SQL into a hibernate mapping file such that it just gets passed through intact to the generate ddl file when using SchemaExport? For example, I want to insert some data, add grants on some tables, etc but I would like to just embed this script into the hibernate mappings ...

7. Annotations 2 DDL/Schema    forum.hibernate.org

8. Annotations 2 DDL/Schema    forum.hibernate.org

9. Can SchemaExportTask Generate DDL That Checks Existence?    forum.hibernate.org

Currently when I generate DDL using org.hibernate.tool.hbm2ddl.SchemaExportTask I get this: alter table ATTRS drop constraint PARENT_ID_FK; I would like the DDL to check for existence first like this: if exists (select * from sysobjects where id = object_id('PARENT_ID_FK') and OBJECTPROPERTY(id, N'IsConstraint') = 1) ALTER TABLE ATTRS DROP CONSTRAINT PARENT_ID_FK Is there a way to do this? Maybe by configuring SchemaExportTask or ...