|
The plugin is designed to be the best Middlegen
plugin :-) and provide a feature full solution for those that like to
(or must) work using a bottom up strategy. The plugin provides:
- The bulk of the options for both direct Hibernate mapping attributes and hbm2java meta attributes.
- Appropriate GUI enhancements (See images in Middlegen JIRA). This allows easily selecting the various options and using the faciltiies provided.
- Storing
the GUI state for both the Table and Columns so that it is correctly
restored each fine tuning or code generation session.
- Full
support for setting attributes across multiply selected columns (I
don't allow multiple select for some properties, eg, the gen-property
meta attribute).
- Added silent unique mapping attribute (not a part of the GUI).
- Full
Relationship support (through foreign keys), eg, one-to-one,
one-to-many, many-to-one, many-to-many with either uni- and
bi-directional associations. Note: One-to-one with foreign keys
requires hibenate 2.1.
- Compound key support. Method uses an external Java class to hold the key fields.
- No primary key tables are generated a single compound key property.
- XDoclet markup for POJO generation to allow prototyping for top-to-bottom development.
- Generate
the hbm file appropriately (decided to not generate any optional XML
attributes if it is not required and setting is equal to the default or
an empty value).
- Custom Java type mapper plugin provider facility (start of Plugins for this Plugin).
The
areas I have not implemented (as yet) include: polymorphism (and
associate items), generated class name meta attribute, meta finder
method and meta session method, or inheritance of meta data options
(This is likely to be asked for in the future (assuming it gets a user
base) but at this stage it will overload the GUI and I did not want to
get to complicated).
|