Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 205603

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T17:34:15+00:00 2026-05-11T17:34:15+00:00

I am working on database migration tool in java. The tool is copying database

  • 0

I am working on database migration tool in java. The tool is copying database tables with their data’s to the destination database. But I want it to work on different databases. Copy from mysql and create in derby etc. With JDBC, we can gather enough information about the table and its columns. But I am going to ask this, if I can recreate tables on java with sql free. I mean different databases have different data types and some times they differs at sql syntax. So can JDBC or any other library (can be open source) do this job at an easy and global way?

  • 0 0 Answers
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T17:34:16+00:00Added an answer on May 11, 2026 at 5:34 pm

    Apache’s DdlUtils is done what I need. When I am searching about crossdb found it, and it is very useful yet powerful. It can generate a database from scratch, just with the parameters. Or it can grab existing database table definitions, also with index definitions. You can use delimiter if you want (it is a deadly important option for me to use Apache Derby). You can just print out these definitions or apply them directly to source database (I haven’t tried the second one yet). It translates definitions for the selected database. But one big problem is there is no good tutorial about how to start using it. I searched through the packages to find a good place to start. Here is what i have achieved, a sample code to generate full database table create sql.

    DerbyPlatform dp = new DerbyPlatform();
    dp.setDelimitedIdentifierModeOn(true);
    Database dbs = new Database();
    DerbyModelReader dmr = new DerbyModelReader(dp);
    Database test = dmr.getDatabase(conn, "MyDBTest");
    
    DerbyBuilder db = new DerbyBuilder(dp);
    String testSqlDerby = dp.getCreateTablesSql(test, true, true);
    System.out.println(testSqlDerby);
    
    System.out.println("\n\n\n\n");
    
    MySql50Platform mp = new MySql50Platform();
    mp.setDelimitedIdentifierModeOn(true);
    MySqlBuilder mb = new MySqlBuilder(mp);
    String testSqlMysql = mp.getCreateTablesSql(test, true, true);
    System.out.println(testSqlMysql);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 163k
  • Answers 163k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer If you have a symbolic link, e.g. $ ls -l… May 12, 2026 at 12:15 pm
  • Editorial Team
    Editorial Team added an answer AS2... ah... the memories (more like nightmares). Try out my… May 12, 2026 at 12:15 pm
  • Editorial Team
    Editorial Team added an answer you need to do: def rule(x): return bin(x)[2:].zfill(8) All functions… May 12, 2026 at 12:15 pm

Related Questions

I use both ruby on rails and Java. I really enjoy using migrations when
I'm working on migration of data from a legacy system into our new app(running
I am using ruby on rails with a MySQL backend. I have a table
I am working on a project to redesign/ redo an application. The problem is

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.