Database Bean Generator

Generator is an command line application written in java that have the goal to make easy the construction of little applications that needs some database objects stuff.

Latest news

13/04/2007

Generator 2.1.4

Changes

22/07/2007

Generator 2.1.3

Changes

15/07/2007

Generator 2.1.2

Changes

30/03/2007

Generator 2.1.1

Changes

30/10/2006

Generator 2.1.0

Changes

14/12/2005

Generator 2.0.6

Changes

Overview

Generator is an command line application written in java that have the goal to make easy the construction of little applications that needs some database objects stuff.

It isn't a replacement of complex object persistence solutions, like hibernate or TopLink but it covers a different target. The little java web applications that dont' use sofisticated persistence options.

Generator invocation is simple, just type:
java -jar generator.jar -xml (config-file.xml)

where config-file is a xml config file with the definitions to connect to the database and generate the bean classes.

The most important features of Generator are (version 2.1.3):

    - Generates classes to access via custom connection resources to database tables.
    - Configuration files are in clear xml format and can be embedded or separate.
    - Supports individual or global field updates.
    - Supports custom set of Exceptions.
    - Provides toXML function for each entity generated.
    - Provides toJson function for finders and general query results.
    - Provides automatic generation of finders coonfigured in the xml configuration file.
    - Provides some utility static methods via the BdUtils.java class generation.
    - Generates an xml file with the database structure.
    - Supports configuration of the methods that produces XML (String as CDATA, data as attributes or values, ...)
    - Support for MySQL, Firebird, MS SQL Server, Oracle and H2(H2 support is in initial stage at this moment).
    - Provides an ant task for automatic integration builds.
    - Supports transparent renaming of the generated class individual fields.
    - Supports normal or CDATA output in individual fields.
    - Supports utilization in all database methods with your own external connection.
    - Preliminar optional support of a pluggable logging system (The goal is use log4j integration)
    - Support for SEQUENCES in Oracle, Firebird and H2, AUTOINCREMENT in MySQL and Autonumeric in MSSQL
    - Support arbitrary raw code and imports from configuration file
    - Correct treatment for NULL values of the fields in the generated class
    - Optional cutting of String fields to its max size in Database


For the planned features, you can see them in the above roadmap.


See inside documentation file README.txt for a example config-file.xml.

Roadmap

Versions 2.0.x : Mature and add features of the application. Standarize build, documentation and so on.

Versions 2.1.x : Rewrite of documentation. Focus on database compatibility issues and bugs (Planned MySQL, Oracle and MSSQL) and better logging facilities and error control

Versions 2.2.x : Provide offline work capability with pre-generated database schemas