Opened 12 years ago

Closed 12 years ago

#6 closed task (fixed)

fmgVen - generate liquibase changelog xml to create database schema

Reported by: fmguler Owned by: fmguler
Priority: major Milestone: fmgVen 0.2
Component: fmgVen Version:
Keywords: liquibase, generate schema Cc:

Description

I was thinking to add a support class for generating SQL create table statements for the specified domain packages, but I use liquibase in my projects, and it is a good practice, so I think it is better to generate liquibase change sets.

Generated xml can be copied to a liquibase database changelog, and the database schema can be created for the Java domain objects in the specified domain package.

Note that this only includes generating initial db schema, the changes in the objects (adding a property or an object, renaming, etc) are out of the scope, they should be manually handled in liquibase changelog or db administration app.

Change History (1)

comment:1 Changed 12 years ago by fmguler

  • Resolution set to fixed
  • Status changed from new to closed

In [36]:

Fixes #6 - Added support class LiquibaseConverter which generates liquibase changelog xml according to the given domain packages. It adds createTable tags with columns, and foreign key constraints. Note that generated xml might bee needed to changed, for the specific needs of the application.

Using this converter, developer can quickly create db schema from Java domain objects, and start working on business logic.

Note: See TracTickets for help on using tickets.