facebook

Generate DDL for the entire schema

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #280971 Reply

    pbassi
    Member

    Hi,

    is there any way to generate the DDL for an entire schema within the database?
    I have MyEclipse 5.5.1 installed
    Thanks in advance

    #280981 Reply

    I’m trying to figure out how to generate the DDL for an entire schema.
    I’m using 6.0.1.
    I can right-click on a single table and get DDL for that — and it looks great.

    But when I select multiple tables / Generate / DDL,
    I only get the DDL for the first table selected.

    We have well over 1000 tables, and we will likely need to export multiple times as changes are introduced.

    I’ve also started down the ‘hibernate’ route of doing this, without much luck.

    An internal error occurred during: “Generating Artifacts”.
    Duplicate names found for primarykey. Existing name: TJD JDBC name: CID on table org.hibernate.mapping.Table(PROFILESCHEMA.ABPJNL)

    I don’t quite understand how it thinks there are duplicate names.
    Here is the DDL generated from the DB Browser:

    create table “ABPJNL”(
    “TJD” DATE not null,
    “CID” NUMERIC(12) not null,
    “ACTIBPAY” BIT,
    constraint “TJD” primary key (“TJD”,”CID”)
    );

    Thanks,

    –Erik Ostermueller

    #280983 Reply

    I guess I should have searched the forum first.
    So it looks like generating all DDL for the db is now a requested enhancement.

    In the mean time, is there a way to write a BeanShell script (or similar) to do this?
    The algorithm would be: Iterate over all tables, invoke some “generate ddl” API function for each one.

    Thanks,

    –Erik Ostermueller

    #281022 Reply

    Loyal Water
    Member

    In the mean time, is there a way to write a BeanShell script (or similar) to do this?

    Im sorry there is no way to do this at the moment.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Generate DDL for the entire schema

You must be logged in to post in the forum log in