Fornax-Platform Log In   View a printable version of the current page.  
  Hibernate (CHB)
  Dashboard > Fornax-Platform > ... > UML2 > Hibernate (CHB)
General


Projects


Latest News



Global Reports
Find all pages that aren't linked from anywhere
Find all undefined pages
Feed for new pages
Added by Thorsten Kamann, last edited by Darius Jockel on Jan 03, 2009  (view change)
Labels: 
(None)

Fornax Hibernate Cartridge

Last stable version is 1.8.1

Download it from SourceForge.net

The Version 1.8.2 is pending until the the currend version of oaw 4.3.1 is avaiable for a build with maven.

See the roadmap for more informations

Overview

This Cartridge is based on openArchitectureWare 4.3 and provides templates and stereotypes for generating Entities and Hibernate O/R-mappings and configuration.

UML2 is used for modeling your domain. Every modeling tool which can export to EMF UML2 is supported. Simply model your domain, export the model and start the generation.

Most of the customizing facilitities of Hibernate are supported. Also a support of legacy databases with composite-key and key-references are supported.

The Entities are generated by the JavaBasic Cartridge. They generated artifacts compromises of three parts for every modeled Entity:

  1. An interface, placed into a seperate physical lokation.
  2. A JavaBean containing all properties and associations with customizable generation of equals() , hashcode() and toString(). This class is complete generated by the Fornax Hibernate Cartridge.
  3. A super class of the JavaBean used for customization with manual written code

Features

Benefit from a simple "out of the box" cartridge, that is highly customizalbe!

  • Generation of JavaBeans and Hibernate Mappings from a simple UML-Model
  • Beautiful code using code formatter
    • Fornax-XML-Formatter
    • Hybridlabs-Java-Beautifier
  • Inheritance** Table per class hierarchy subclass** Table per subclass joined-subclass** Table per concrete class union-subclass
  • (JPA-) Embedded
  • Natural-Keys and automatic generation of toString(), hashcode() and equals()
  • Java 5 (typed Collections)
  • completion of models with default values (via Model Transformations)
    • naming unnamed association-ends
    • providing default keys
  • many customizing facilities like:
    • customizing Hibernate-specific properties
    • customizing the table and column names with:
      • prefix
      • (name | name.toUpperCase | name.toLowerCase)
      • suffix
  • Support for legency databases
    • composite keys
    • key references

Uses latest technologies:

  • Hibernate version 3.2.6 GA
  • oAW 4.3.0
  • JavaBasic Cartridge 2.0.3
  • planned: Hibernate Annotations

Documentation

Issues and Improvements

Issues, bugs, and feature requests should be submitted to the following issue tracking system for this project.

http://www.fornax-platform.org/tracker/browse/CHB.

Use the Forum for questions and discussion.


Powered by itemis and NoMagic

Article Rating: 7.0 (1 voters)
2 3 4 5 6 7 8 9
 

Architectural Information (CHB) (Fornax-Platform)
Frequently Asked Questions (CHB) (Fornax-Platform)
Hibernate Cartridge Manual (CHB) (Fornax-Platform)
Partners and Sponsors (CHB) (Fornax-Platform)
Profile (CHB) (Fornax-Platform)
Projectinformations (CHB) (Fornax-Platform)
The Hibernate Cartridge Release (CHB) (Fornax-Platform)
Usage (CHB) (Fornax-Platform)
Versions (Fornax-Platform)

Looks great!

attila

Posted by Anonymous at Nov 09, 2006 17:22 | Permalink | Reply To This

Thanks! Were you able to test it successfully?

Darius will now make the initial release, hopefully on Friday. After that he will provide some documentation. 

Posted by Karsten Thoms at Nov 30, 2006 09:57 | Permalink | Reply To This

The Cartridge works fine. With the tutorial it should be no problem to run it succesfully. Feel free to try out

Posted by Darius Jockel at Jan 02, 2007 18:24 | Permalink | Reply To This

Does it work with hibernate annotations in java 1.5

Posted by Anonymous at Jun 16, 2008 10:28 | Permalink | Reply To This

A first, rudimental, support is implemented. Comprehensive support is planned, but there is no volunteer to do this job

Posted by Darius Jockel at Aug 05, 2008 10:23 | Permalink | Reply To This

The JAVA 1.5 has some problems. The pojo-File do use an import directive, that points to a package and not a class, that -in turn- cause a compile error. Anyway you have to work over the generated work after creation.

Another question: Where can i configure, that the cardrigde only creaes Java1.4 code?

Posted by Anonymous at Sep 15, 2008 11:23 | Permalink | Reply To This

The cardrige has a nasty bug, when you model a 1:1 relationsship between two table, with a bidirectional navigation. The Problem is, that this relationship is translated into three(!) tables. Two of them are derived by the both UML-classes, which is correct. The third table is a assoc-table, that your be useful for n:m cardinality relationships, but not 1:1.

Another thing that looks strange is the use of columnames for 1:1 relationsships. For an 1:1 relationsship the generator uses as a columname the name of the association table, that looks like:  LINK_<table1>_<table2>.  This will end up in columnsames that are too long.

In order to prevent the lenghty assoc. tablename, it would be a help, to allow the designer to chose a table name for assoc-tables in UML in a stereotype value. 

Posted by Anonymous at Sep 15, 2008 11:18 | Permalink | Reply To This
Site powered by a free Open Source Project / Non-profit License (more) of Confluence - the Enterprise wiki.
Learn more or evaluate Confluence for your organisation.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.9 Build:#527 Sep 07, 2006) - Bug/feature request - Contact Administrators